React_And_React_Native project setup
React_And_React_Native project setup
Ensure Node.js and npm (Node Package Manager) are installed on your system.
node -v
npm -v
cd my-react-app
npm start
function App() {
return (
<div className="App">
<h1>Hello, React.js!</h1>
</div>
);
# React Router
cd my-react-native-app
expo start
return (
<View style={styles.container}>
<Text>Hello, React Native!</Text>
</View>
);
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});
# React Navigation
react-native-reanimated react-native-vector-icons
# Install Jest
git init
git add .
10. Deployment
- React Native: Build standalone apps using Expo or tools like EAS Build.