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 {
6 + constructor(props){
7 + super(props);
8 + this.state = {
9 +
10 + };
11 + }
12 + render(){
5 return ( 13 return (
6 - <View style={styles.container}> 14 + <Home>
7 - <Text>Open up App.js to start working on your app!</Text> 15 + <Text></Text>
8 - </View> 16 + </Home>
9 - ); 17 + )
18 + }
10 } 19 }
...\ No newline at end of file ...\ No newline at end of file
11 -
12 -const styles = StyleSheet.create({
13 - container: {
14 - flex: 1,
15 - backgroundColor: '#fff',
16 - alignItems: 'center',
17 - justifyContent: 'center',
18 - },
19 -});
......
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