• Stars
    star
    256
  • Rank 158,326 (Top 4 %)
  • Language Makefile
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

✏️ A collection of React Native snippets for Sublime Text and Atom

[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

  1. Create your snippet.
  2. Postfix your snippets with _react_native.
  3. Generate the Atom snippet file (make install && make atom)
  4. Add them to the README
  5. Submit a Pull Request
  6. ???
  7. 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

More Repositories

1

partyparrot

🎉 🐦 Very Serious Code ™️ that generates huge slack messages with emojis.
Python
394
star
2

asdfghjkl

💻 Turn your keyboard into a trackpad. Yes, really.
Swift
96
star
3

MCBouncyButton

📱 A delightfully bouncy button.
Objective-C
89
star
4

skiff

⛵ Python library for DigitalOcean's v2 API
Python
36
star
5

fauxgaux

⛳ Functional Go
Go
35
star
6

V-A-P-O-R-W-A-V-E

🏄 ALL ABOUT THAT AESTHETIC
JavaScript
24
star
7

Googiri

Use Google's Speech to text engine with Siri.
Logos
14
star
8

proof-of-steak

🥩Using Proof of Stake to secure Proofs of Steak
CSS
14
star
9

themanymatts

there are many matts, and you could have one
TypeScript
13
star
10

fivestar

Amazon search, but faster and better
TypeScript
13
star
11

fizzbuzz-kube

A distributed, fault-tolerant, production-ready FizzBuzz implementation for the microservice cloud.
Shell
12
star
12

me_irl_bot

me irl
TypeScript
9
star
13

gudetama

A repository with gudetama-related things.
7
star
14

MessageSwiper7

MessageSwiper for iOS7
Logos
7
star
15

gslash

Global '/' shortcut for focusing search boxes.
JavaScript
6
star
16

blast-from-the-past

Python app that randomly likes statuses from 2009, bumping them to the front of the feed
HTML
6
star
17

OpenOnSearch

opens the first spotlight listing when the keyboard search button is pressed
Logos
5
star
18

membot

Memrise for Facebook Chat
Ruby
4
star
19

CLLocationMiddleManager

The iOS Simulator's location spoofing, on your device.
Swift
4
star
20

BossBoss

Course Discovery and Schedule Management tool for LA Tech
JavaScript
4
star
21

diamond

A video multiplexer for presentations
JavaScript
3
star
22

y.at

ý.at 🖕 // everybody owns emojis
TypeScript
3
star
23

Jump

Enable Leap integration with iOS apps
Objective-C
3
star
24

Jarvis

Jarvis implementation with custom IoT protocol with Arduino-based nodes over RF mesh network
JavaScript
3
star
25

mini-eth

It's geth but hella local
JavaScript
2
star
26

FrisbeePhysicsScript

script that predicts the flight path of a frisbee
Python
2
star
27

bitter

http://bitr.me - Making the world a bitter place.
Objective-C
2
star
28

ofthefox.market

TypeScript
2
star
29

googiri-demo

An example application using Googiri, wit.ai, IFTTT, and Slack
JavaScript
2
star
30

JumpApp

Proxies local websocket over bonjour-enabled socket
Objective-C
2
star
31

azid

Azimuth ID
TypeScript
2
star
32

stacks

Cydia tweak that lets you create stacks of applications in the dock, ala OSX.
Logos
2
star
33

open-graph-preview

A shitty website to preview open-graph share cards from twitter and facebook
CSS
2
star
34

hashcache

🍱🇯🇵📎 reveal.js flashcard set for Japanese Vocab
JavaScript
2
star
35

ClearOnOpen

ios tweak to remove last spotlight search results
Logos
1
star
36

jailbreak-tweaks

An archive of my old jailbreak tweaks. There's probably some dumb code in here.
Logos
1
star
37

solomonos

Slack Sonos Slash Command
Python
1
star
38

yelpCustom

A modification of the yelpSeach plugin for SiriServerCore that allows a user to specify custom search commands.
Python
1
star
39

coinbase-thing

playing around with the gdax orderbook
Ruby
1
star
40

OfCourse

A frontend for a forcibly created database of school information about LA Tech, acquired by scraping and traversing the website.
JavaScript
1
star
41

JumpController

Control iOS UI via Leap Gesture with Jump
Logos
1
star
42

goats

Solidity
1
star
43

000

Follow Benji the black hole as he consumes planets, starting with the Earth
Swift
1
star
44

googlePlacesSearchCustom

A modification of the googlePlacesSeach for SiriSeverCore.
Python
1
star
45

remind.me

An intuitive reminder service for dumbphones.
PHP
1
star
46

EMP

more like NO-tifications
JavaScript
1
star
47

fileRead

A SiriServerCore plugin that can read, write, and create file in a specific directory.
1
star
48

raffie

Automated Raffle bot on top of Venmo https://twitter.com/rafflebot
JavaScript
1
star
49

ytbot

YouTube linking bot for reddit
Python
1
star
50

mat.tc

Code responsible for http://mat.tc
Ruby
1
star
51

next-vercel-data-example

TypeScript
1
star
52

TPTT

Twitch Plays Typing Tutor for Comedy Hack Day '14
JavaScript
1
star