Snippets
Snippet | Tab Trigger | Description |
---|---|---|
React Native Create Class | rncc | Scaffolds a full react-native component class. |
this.setState() | tss | |
Create StyleSheet | css | Scaffolds a StyleSheet-only module. |
StyleSheet.create() | ssc | Shortcut for creating a StyleSheet inline. |
React.PropTypes. | rpt |
Lifecycle Methods
Snippet | Tab Trigger |
---|---|
constructor() | constructor() |
componentWillMount() | cwm |
componentDidMount() | cdm |
componentWillUnMount() | cwum |
componentDidUnMount() | cdum |
componentWillUpdate() | cwud |
componentDidUpdate() | cdud |
componentWillReceiveProps() | cwrp |
shouldComponentUpdate() | scud |
static propTypes = {} | propTypes |
static defaultProps = {} | defaultProps |
flex: 1 | f1 |
alignItems: 'center' | ai |
justifyContent: 'center' | jc |
this.props. | props |
render: fn() { return ... } | ren |
this.setState({ ... }) | sst |
this.state. | state |
Components
Snippet | Tab Trigger |
---|---|
ActivityIndicatorIOS | rnActivityIndicatorIOS |
DatePickerIOS | rnDatePickerIOS |
Image | rnImage |
ListView | rnListView |
Navigator | rnNavigator |
NavigatorIOS | rnNavigatorIOS |
PickerIOS | rnPickerIOS |
Text | rnText |
TouchableHighlight | rnTouchableHighlight |
View | rnView |