Skip to content

Commit

Permalink
fix deprecation on Component import (#9)
Browse files Browse the repository at this point in the history
import Component from react instead of react-native
  • Loading branch information
shivamsinha15 authored and shrugs committed May 9, 2016
1 parent ec1868c commit cfc152e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snippets/createClass_react_native.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
<content><![CDATA[
'use strict';
import React, {
import { Component } from 'react';
import {
StyleSheet,
View,
} from 'react-native';
class ${1:${TM_FILENAME/(.+)\..+|.*/$1/:MyComponent}} extends React.Component {
class ${1:${TM_FILENAME/(.+)\..+|.*/$1/:MyComponent}} extends Component {
render() {
return (
<View />
Expand Down

0 comments on commit cfc152e

Please sign in to comment.