37
loading...
This website collects cookies to deliver better user experience
npm install -g expo-cli
expo init firstProject
expo start
import React from "react";
import { View, Text } from "react-native";
const ViewShow = () => {
return (
<View>
<View>
<Text>Box One</Text>
</View>
<View ><Text>Hello World!</Text></View>
</View>
);
};
export default ViewShow;
return (
<View>
<Text>welcome to stupid Progrmmer </Text>
<Text>Thanks for reading </Text>
</View>
);
return(
<View>
<Image source = {{uri:'https://pbs.twimg.com/profile_images/486929358120964097/gNLINY67_400x400t.png'}}
style = {{ width: 200, height: 200 }}
/>
<Image source = {require('C:/Users/MyDir/Desktop/NativeImage/logo.png')} />
</View>
);
import React from "react";
import { SafeAreaView, StyleSheet, TextInput } from "react-native";
const TextInputExample = () => {
const [text, onChangeText] = React.useState("Useless Text");
return (
<SafeAreaView>
<TextInput
style={styles.input}
onChangeText={onChangeText}
value={text}
placeholder="write some text"
/>
</SafeAreaView>
);
};
const styles = StyleSheet.create({
input: {
height: 40,
margin: 12,
borderWidth: 1,
},
});
export default TextInputExample;
37