Skip to content

Instantly share code, notes, and snippets.

@madox2
Last active August 31, 2016 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madox2/2c002a354ba4d1e55c42abd5f3860c3b to your computer and use it in GitHub Desktop.
Save madox2/2c002a354ba4d1e55c42abd5f3860c3b to your computer and use it in GitHub Desktop.
import React, { Component } from 'react'
import { theme, Text, View, withStyles } from 'react-native-themeable'
const redTheme = withStyles([
{
$type: Text,
color: 'white',
fontSize: 26,
}, {
$type: View,
backgroundColor: 'red',
},
])
@theme(redTheme)
class App extends Component {
render() {
return (
<View>
<Text>Hello world</Text>
</View>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment