Commit b9694aaa by OuiAtichat

fix conflict

parent 55df8217
......@@ -194,7 +194,7 @@ const WithBottomTabStack = createBottomTabNavigator(
Four: FourthStack,
},
{
initialRouteName: 'SmartMeter',
initialRouteName: 'Timer', // default SmartMeter
tabBarComponent: props => <BottomNavigationTabs {...props} />,
tabBarOptions: {
keyboardHidesTabBar: true,
......@@ -235,7 +235,7 @@ const AppStack = createSwitchNavigator(
Main: MainStack,
},
{
initialRouteName: 'Main',
initialRouteName: 'Main', //default AuthLoading
}
);
......
......@@ -277,7 +277,7 @@ export default class TimerScreen extends Component {
height: 30,
borderColor: '#c7cad1',
}}
inputStyle={{ fontFamily: 'Avenir-Roman', fontSize: 12, color: color.darkGrey }}
inputStyle={{ fontFamily: 'Avenir-Roman', fontSize: 12, color: '#c7cad1' }}
round
lightTheme
placeholder="Search..."
......@@ -375,7 +375,23 @@ export default class TimerScreen extends Component {
<Button
transparent
style={{ flex: 1, justifyContent: 'center' }}
onPress={() => this.setState({ isVisible: false })}
onPress={() =>
this.setState({
isVisible: false,
timer: new Date(),
active: false,
power: false,
repeatDays: [
{ day: 'S', isRepeat: false },
{ day: 'M', isRepeat: false },
{ day: 'T', isRepeat: false },
{ day: 'W', isRepeat: false },
{ day: 'T', isRepeat: false },
{ day: 'F', isRepeat: false },
{ day: 'S', isRepeat: false },
],
})
}
>
<Text style={{ color: color.grey }}>Cancel</Text>
</Button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment