React Native: Is it possible to call a function directly without any button press or TouchableOpacity?

I want to call a function on the second screen as soon as the screen navigates to the second screen. Is it possible? This is related to firebase phone auth but here the OTP screen is on another screen not on the same screen. >Solution : on the screen, you can use useEffect to call… Read More React Native: Is it possible to call a function directly without any button press or TouchableOpacity?

Getting an image from route.paramns in react native

I’m trying to make a profiles screen for my members of the group. My idea is make just one font for the four screen using route params to set all informations, like this: <TouchableOpacity style={styles.ident1} onPress={() => navigation.navigate(‘Profile’, { Nome: ‘├éngelo J. da Rosa’, Resto: [’19 Anos’, ‘Cocal do Sul – SC’], Foto: ‘../../assets/angelo.jpeg’ })}>… Read More Getting an image from route.paramns in react native

Undefined is not an object (evaluating 'navigation.navigate') when trying to navigate between two sites React Native

I try to navigate between two pages in a React Native app. I keep getting errors for my implementations but I don’t know why. I have the following setup for a "Home" and "Settings" site in the React Native app with Navigator adjusted from the documentation: App.js import Home from "./Home"; import { NavigationContainer }… Read More Undefined is not an object (evaluating 'navigation.navigate') when trying to navigate between two sites React Native

How can i change Header Bar height in react native?

i’m trying to change Header Bar height in React-Native Stack Navigator this is my code I tried to put headerStyle: height:’100′, but it doen’t work what should i do? const LoginNavigator = () => { return ( <Stack.Navigator> <Stack.Screen name="Login" component={Login} options={{ title: ‘MOVIEAPP’, headerTransparent: true, headerTintColor: ‘#E70915’, headerTitleStyle: { fontWeight: ‘bold’, }, headerStyle:{ height:100,… Read More How can i change Header Bar height in react native?