Commit a719c19d by leiyongsheng

添加sass和stack

parent 90a3a0a7
...@@ -4,9 +4,11 @@ ...@@ -4,9 +4,11 @@
import { AppRegistry } from 'react-native'; import { AppRegistry } from 'react-native';
import App from './src/App'; import App from './src/App';
import NavigateEntryTest from './src/test/NavigateEntryTest.js'
import { name as appName } from './app.json'; import { name as appName } from './app.json';
AppRegistry.registerComponent(appName, (props) => { AppRegistry.registerComponent(appName, (props) => {
console.log('AppRegistry.registerComponent:' + props); console.log('AppRegistry.registerComponent:' + props);
return App; return App;
// return NavigateEntryTest;
}); });
...@@ -12,8 +12,10 @@ ...@@ -12,8 +12,10 @@
"dependencies": { "dependencies": {
"@react-native-community/masked-view": "^0.1.10", "@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.7.3", "@react-navigation/native": "^5.7.3",
"@react-navigation/stack": "^5.9.0",
"bufferutil": "^4.0.1", "bufferutil": "^4.0.1",
"canvas": "^2.6.1", "canvas": "^2.6.1",
"node-sass": "^4.14.1",
"react": "16.13.1", "react": "16.13.1",
"react-native": "^0.63.2", "react-native": "^0.63.2",
"react-native-gesture-handler": "^1.8.0", "react-native-gesture-handler": "^1.8.0",
......
...@@ -97,13 +97,12 @@ const App = (props) => { ...@@ -97,13 +97,12 @@ const App = (props) => {
<Text style={styles.footer}>Engine: Hermes(need config!!!!)</Text> <Text style={styles.footer}>Engine: Hermes(need config!!!!)</Text>
</View> </View>
)} )}
{Platform.OS == 'ios' ? (
<View style={styles.buttonContainer}> <View style={styles.buttonContainer}>
<CustomerView style={{ height: 80 }} /> <CustomerView style={{ height: 80 }} />
{Platform.OS == 'ios' ? (
<MapView region={region} zoomEnabled={false} style={{ flex: 1, height: 200 }} /> <MapView region={region} zoomEnabled={false} style={{ flex: 1, height: 200 }} />
) : null}
</View> </View>
) : null
}
<View style={styles.body}> <View style={styles.body}>
<View style={styles.buttonContainer}> <View style={styles.buttonContainer}>
{Platform.OS == 'android' ? ( {Platform.OS == 'android' ? (
......
import 'react-native-gesture-handler';
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
export default function NavigateEntryTest() {
return (
<NavigationContainer>{/* Rest of your app code */}</NavigationContainer>
);
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment