Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

SettingsScreen.jsx 708B

1234567891011121314151617181920212223242526
  1. import React from 'react';
  2. import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
  3. const SettingsScreen = ({navigation}) => {
  4. return (
  5. <View style={styles.container}>
  6. <Text>Settings</Text>
  7. <TouchableOpacity onPress={() => navigation.goBack()}>
  8. <Text>Go Back</Text>
  9. </TouchableOpacity>
  10. <TouchableOpacity onPress={() => navigation.openDrawer()}>
  11. <Text>Open drawer</Text>
  12. </TouchableOpacity>
  13. </View>
  14. )
  15. }
  16. const styles = StyleSheet.create({
  17. container: {
  18. flex: 1,
  19. justifyContent: 'center',
  20. alignItems: 'center'
  21. }
  22. })
  23. export default SettingsScreen;