snippets
1、Scaffolds a full react-native component class.
React Native Create Class : rncc

2、this.setState() :tts

3、Scaffolds a StyleSheet-only module.
Create StyleSheet :css

4、Shortcut for creating a StyleSheet inline.
StyleSheet.create() : ssc

5、React.PropTypes. :rpt

Lifecycle Methods
1、constructor() :constructor()

2、componentWillMount() : cwm

3、componentDidMount() :cdm

4、componentWillUnMount() :cwum

5、componentDidUnMount() :cdum
6、componentWillUpdate() :cwud

7、componentDidUpdate() :cdud

8、componentWillReceiveProps() :cwrp

9、shouldComponentUpdate() :scud

10、static propTypes = {} :propTypes

11、static defaultProps = {} :defaultProps

12、flex: 1 :f1

13、alignItems: 'center' :ai

14、justifyContent: 'center' :jc

Components
1、ActivityIndicatorIOS :rnActivityIndicatorIOS

2、DatePickerIOS :rnDatePickerIOS

3、Image : rnImage

4、ListView : rnListView

5、Navigator :rnNavigator

6、NavigatorIOS :rnNavigatorIOS

7、PickerIOS :rnPickerIOS

8、Text :rnText

9、TouchableHighlight :rnTouchableHighlight

10、View :rnView

网友评论