Soy nuevo en reaccionar nativo, sigo el tutorial de youtube para crear un botón, pero por qué mi botón no funciona que no puede hacer clic, no pasa nada. Cualquiera por favor me ayude, aquí está mi código:
import React from 'react'; import { View, Text, StyleSheet, Button, Linking, } from 'react-native'; const App = () => { return ( <View style={styles.body}> <Text>Center</Text> <Button title='Text Me' onPress={()=>{Linking.openURL('https://www.youtube.com')}}></Button> </View> ) }; const styles = StyleSheet.create({ body: { padding: 16, alignItems: 'center', flex: 1, justifyContent: 'center', } }); export default App;