Skip to content

Commit 9a065f1

Browse files
author
Jeremy Ong
committed
Import React and React.Component from the react module instead of react-native
1 parent 1f88a91 commit 9a065f1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77

88
'use strict'
99

10-
var React = require('react-native');
11-
var {
10+
import React, { Component } from 'react'
11+
import {
1212
StyleSheet,
1313
View,
1414
Text,
15-
Component,
1615
TouchableOpacity,
17-
} = React;
16+
} from 'react-native'
1817

1918
class CircleCheckBox extends Component {
2019

0 commit comments

Comments
 (0)