프로젝트
GitHub에서 보기
shrugs/react-native-snippets
소개
:pencil2: A collection of React Native snippets for Sublime Text and Atom
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original[Looking for Maintainer] react-native-snippets
A collection of React Native snippets for Sublime Text and Atom.
These snippets use ES6/7 syntax.
Install
Install by searching for react-native-snippets in Package Control
For Atom, search for react-native-snippets-horse in the Atom Package Manager.
Snippets
| Snippet | Tab Trigger | Description |
|---|---|---|
| React Native Create Class | rncc | Scaffolds a full react-native component class. |
| React Native Create Stateless Function | rnstf | Scaffolds a stateless function. |
| this.setState() | tss | |
| Create StyleSheet | css | Scaffolds a StyleSheet-only module. |
| StyleSheet.create() | ssc | Shortcut for creating a StyleSheet inline. |
| React.PropTypes. | rpt | |
| export default | ed |
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 |
Components
| Snippet | Tab Trigger |
|---|---|
| ActivityIndicatorIOS | rnActivityIndicatorIOS |
| DatePickerIOS | rnDatePickerIOS |
| Image | rnImage |
| ListView | rnListView |
| Navigator | rnNavigator |
| NavigatorIOS | rnNavigatorIOS |
| PickerIOS | rnPickerIOS |
| Text | rnText |
| TouchableHighlight | rnTouchableHighlight |
| View | rnView |
Some snippets heavily inspired by sublime-react.
TODO
- Flow Type Checking Annotations
Contributing
- Create your snippet.
- Postfix your snippets with
_react_native. - Generate the Atom snippet file (
make install && make atom) - Add them to the README
- Submit a Pull Request
- ???
- Profit!
Try to make your snippet tab triggers follow a syllable-based fuzzy-search style. For example for componentWillUpdate(), cwud is preferred over cwup.
LICENSE
MIT, see LICENSE
관련 프로젝트 살펴보기
불러오는 중…