stylesheet react native code example
Example 1: border react native
button: {
borderWidth: 4,
borderColor: "#20232a",
}
Example 2: react native backgrunde img
return (
<ImageBackground source={...} style={{width: '100%', height: '100%'}}>
<Text>Inside</Text>
</ImageBackground>
);
Example 3: styles in react native
//Import
import { StyleSheet} from 'react-native';
//Add style in React native component this way
<View style={styles.container}>
</View>
//create your style this way
const styles = StyleSheet.create({
container: {
marginTop: 50,
},
});