Answers for "how to use stylesheet in react native"

3

border react native

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

react native generate stylesheet with function

styleFunction (option) {
  return {
    borderWidth: 2,
    margin: option,
  }
}

<View style={this.styleFunction(15)}>
	//things
</View>
Posted by: Guest on May-23-2021
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 "how to use stylesheet in react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language