Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <TouchableWithoutFeedback onPress={() => this.setState({ falseSwitchIsOn: !this.state.falseSwitchIsOn })} >
  2. <View style={{ alignItems: 'center', paddingTop: 20, paddingBottom: 20, flexDirection: 'row', borderBottomWidth: 1, borderColor: '#f7f7f7' }}>
  3. <Entypo name="list" size={32} color='#0D8F4F' />
  4. <View style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'stretch' }}>
  5. <View style={{ flexDirection: 'column', alignItems: 'stretch' }}>
  6. <Text style={{ marginLeft: 15, fontWeight: '600' }}>Night Mode</Text>
  7. <Text style={{ fontWeight: '400', color: '#333', marginLeft: 15 }}>Text readibility at night</Text>
  8. </View>
  9.  
  10. <Switch
  11. onValueChange={(value) => this.setState({ falseSwitchIsOn: value })}
  12. style={{ alignItems: 'flex-end' }}
  13. value={this.state.falseSwitchIsOn} />
  14. </View>
  15. </View>
  16. </TouchableWithoutFeedback>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement