Answers for "stylesheet react native"

3

border react native

button: {  
	borderWidth: 4,
    borderColor: "#20232a",
}
Posted by: Guest on December-14-2020
5

react native backgrunde img

return (
  <ImageBackground source={...} style={{width: '100%', height: '100%'}}>
    <Text>Inside</Text>
  </ImageBackground>
);
Posted by: Guest on March-17-2020
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,
  },
});
Posted by: Guest on November-20-2020
0

does react native use css

Not exactly CSS, the style names and values usually match how CSS works on 
the web, except names are written using camel casing, e.g. backgroundColor 
instead of background-color.
Posted by: Guest on July-31-2021

Code answers related to "stylesheet react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language