Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example
- /* stylesheet definition */
- export const redStyle = { color: 'red' };
- /* component */
- import { redStyle } from './colorStyle';
- const style = StyleSheet.create({
- ...redStyle,
- });
- export const Widget = ({ text }) => <Text style={style.color}>{text}></Text>;
Add Comment
Please, Sign In to add comment