you can always customize your style in the component, suppose you have a component:
const MyComponent = ({size, color}) => <Text style={{color: color, fontSize:size}}>Hello</Text>;
in your parent component, you can get your topic data from the side, for example
const themeJson = retrieveTheme()
, color size ur, JSON.
MyComponent
<MyComponent color={themeJson.color} fontSize={themeJson.size} />
JSON .
native , StyleSheet , , , React ( JSON), ,
const styles= StyleSheet.create({
existStyle={
color: "red",
fontSize: 15
}
});
const MyComponent = ({size, color}) =>
<Text style={[styles.existStyle, {color: color, fontSize: size}] style={{color: color, fontSize:size}}>Hello</Text>;
, . , .