bluejoyq

config basic component

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