GithubHelp home page GithubHelp logo

bellyabc123 / react-native-snippets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shrugs/react-native-snippets

0.0 2.0 0.0 25 KB

:pencil2: A collection of Sublime Text Snippets for react-native

License: MIT License

react-native-snippets's Introduction

react-native-snippets

A collection of Sublime Text snippets for react-native.

These snippets use ES6 syntax.

Install

Install via Package Control by searching for react-native-snippets.

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
.propTypes = {} propTypes
.defaultProps = {} defaultProps
flex: 1 f1
alignItems: 'center' ai
justifyContent: 'center' jc

Components

Snippet Tab Trigger
ActivityIndicatorIOS <ActivityIndicatorIOS
DatePickerIOS <DatePickerIOS
Image <Image
ListView <ListView
Navigator <Navigator
NavigatorIOS <NavigatorIOS
PickerIOS <PickerIOS
Text <Text
TouchableHighlight <TouchableHighlight
View <View

Some snippets heavily inspired by sublime-react.

TODO

  • Flow Type Checking Annotations

Contributing

  1. Create your snippet.
  2. Postfix your snippets with _react_native.
  3. Add them to the README
  4. Submit a Pull Request
  5. ???
  6. 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

react-native-snippets's People

Contributors

livepanzo avatar michalvalasek avatar shivamsinha15 avatar shrugs avatar xiekw2010 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.