Skip to content

Commit cfc152e

Browse files
shivamsinha15shrugs
authored andcommitted
fix deprecation on Component import (#9)
import Component from react instead of react-native
1 parent ec1868c commit cfc152e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

snippets/createClass_react_native.sublime-snippet

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
<content><![CDATA[
33
'use strict';
44
5-
import React, {
5+
import { Component } from 'react';
6+
7+
import {
68
StyleSheet,
79
View,
810
} from 'react-native';
911
10-
class ${1:${TM_FILENAME/(.+)\..+|.*/$1/:MyComponent}} extends React.Component {
12+
class ${1:${TM_FILENAME/(.+)\..+|.*/$1/:MyComponent}} extends Component {
1113
render() {
1214
return (
1315
<View />

0 commit comments

Comments
 (0)