bluejoyq

config basic component

1 +{
2 + "devToolsPort": 19002,
3 + "expoServerPort": 19000,
4 + "packagerPort": 19001,
5 + "packagerPid": 7268,
6 + "expoServerNgrokUrl": "https://ep-ukj.anonymous.searchguide.exp.direct",
7 + "packagerNgrokUrl": "https://packager.ep-ukj.anonymous.searchguide.exp.direct",
8 + "ngrokPid": 29132
9 +}
1 +{
2 + "hostType": "lan",
3 + "lanType": "ip",
4 + "dev": true,
5 + "minify": false,
6 + "urlRandomness": "ep-ukj",
7 + "https": false
8 +}
1 import React from 'react'; 1 import React from 'react';
2 -import { StyleSheet, Text, View } from 'react-native'; 2 +import { View, Text} from 'react-native';
3 +import Home from './components/Home/Home';
3 4
4 -export default function App() { 5 +export default class App extends React.Component {
5 - return ( 6 + constructor(props){
6 - <View style={styles.container}> 7 + super(props);
7 - <Text>Open up App.js to start working on your app!</Text> 8 + this.state = {
8 - </View>
9 - );
10 -}
11 9
12 -const styles = StyleSheet.create({ 10 + };
13 - container: { 11 + }
14 - flex: 1, 12 + render(){
15 - backgroundColor: '#fff', 13 + return (
16 - alignItems: 'center', 14 + <Home>
17 - justifyContent: 'center', 15 + <Text></Text>
18 - }, 16 + </Home>
19 -}); 17 + )
18 + }
19 +}
...\ No newline at end of file ...\ No newline at end of file
......
1 +import React from 'react';
2 +import { View, Text} from 'react-native';
3 +
4 +export default class Home extends React.Component {
5 + constructor(props) {
6 + super(props);
7 + this.state = {
8 +
9 + }
10 + }
11 +
12 + render() {
13 + return(
14 + <View>
15 + <Text>hi</Text>
16 + </View>
17 + )
18 + }
19 +
20 +}
...\ No newline at end of file ...\ No newline at end of file