1//Import
2import { StyleSheet} from 'react-native';
3
4//Add style in React native component this way
5<View style={styles.container}>
6</View>
7
8//create your style this way
9const styles = StyleSheet.create({
10 container: {
11 marginTop: 50,
12 },
13});
1Not exactly CSS, the style names and values usually match how CSS works on
2the web, except names are written using camel casing, e.g. backgroundColor
3instead of background-color.