We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got an error then i run yarn web
yarn web
package.json
{ "name": "myApp", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "lint": "eslint .", "web": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "dependencies": { "@react-native-community/masked-view": "^0.1.10", "@react-native-community/push-notification-ios": "^1.8.0", "@react-navigation/native": "^5.8.10", "@react-navigation/stack": "^5.12.8", "react": "^17.0.1", "react-dom": "^17.0.1", "react-native": "^0.63.3", "react-native-gesture-handler": "^1.9.0", "react-native-reanimated": "^1.13.2", "react-native-safe-area-context": "^3.1.9", "react-native-screens": "^2.16.1", "react-native-web": "^0.14.8", "react-scripts": "4.0.0", "web-vitals": "^0.2.4" }, "devDependencies": { "@babel/core": "^7.8.4", "@babel/runtime": "^7.8.4", "@react-native-community/eslint-config": "^1.1.0", "metro-react-native-babel-preset": "^0.59.0", "react-test-renderer": "17.0.1" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }
App.js
import * as React from 'react'; import {View, Text, Button} from 'react-native'; import {NavigationContainer} from '@react-navigation/native'; import {createStackNavigator} from '@react-navigation/stack'; import PushNotificationIOS from '@react-native-community/push-notification-ios'; import {Platform} from 'react-native-web'; function HomeScreen({navigation}) { return ( <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}> <Text>Home Screen</Text> <Button title="Go to Details" onPress={() => navigation.navigate('Details')} /> </View> ); } function DetailsScreen({navigation}) { return ( <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}> <Text>Details Screen</Text> <Button title="Go to Details... again" onPress={() => navigation.navigate('Details')} /> </View> ); } const Stack = createStackNavigator(); function App() { if (Platform.OS === 'ios') { PushNotificationIOS.requestPermissions(); } return ( <NavigationContainer> <Stack.Navigator> <Stack.Screen name="Home" component={HomeScreen} /> <Stack.Screen name="Details" component={DetailsScreen} /> </Stack.Navigator> </NavigationContainer> ); } export default App;
The text was updated successfully, but these errors were encountered:
#89 necolas/react-native-web#1684
Sorry, something went wrong.
No branches or pull requests
I got an error then i run
yarn web
package.json
App.js
The text was updated successfully, but these errors were encountered: