Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native generate stylesheet with function

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

<View style={this.styleFunction(15)}>
	//things
</View>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #generate #stylesheet #function
ADD COMMENT
Topic
Name
7+1 =