1// the component for div in react native is "View"
2return (
3 <View
4 style={{
5 flexDirection: "row",
6 height: 100,
7 padding: 20
8 }}
9 >
10 <View style={{ backgroundColor: "blue", flex: 0.3 }} />
11 <View style={{ backgroundColor: "red", flex: 0.5 }} />
12 <Text>Hello World!</Text>
13 </View>
14)