I\'m writing a React Native component for a library and I want users to be able to style it using the style property, just like React.View and other bu
style
React.View
You need to import StylesheetRegistry:
StyleSheetRegistry = require("../../node_modules/react-native/Libraries/StyleSheet/StyleSheetRegistry"),
Then pass in the style ID:
var style = StyleSheetRegistry.getStyleByID(this.props.style)