skip to Main Content

Why I do not see any props in React Native?

I'm trying to pass some props to class component from function component via navigation. At Function component I'm writing: export default function StartScreen() { const navigation = useNavigation(); function onButtonPress(){ navigation.navigate("Main",{'test':'Test'}); } return( <> <AnimatedTouchable onPress={onButtonPress}></AnimatedTouchable> </> ) } At…

VIEW QUESTION

Vite + React Docker

I'm trying to run my vite+react app using the docker container, the code is running fine but unfortunately, it's not opening in localhost 3000 DockerFile FROM node:18-alpine EXPOSE 3000 WORKDIR /react-vite-app COPY package.json . RUN yarn install COPY . .…

VIEW QUESTION
Back To Top
Search