2016-05-30 89 views

回答

1

導入從react包反應,其餘的從react-native,如:

import React from 'react'; 
import { 
    AppRegistry, 
    StyleSheet, 
    Text, 
    View, 
    ToolbarAndroid 
} from 'react-native'; 

實施例:​​

+0

更多信息https://github.com/facebook/react-native/releases/tag/v0.25.1 – azium

0

這裏第一運行命令作爲

brew install node 

然後

react-native start --reset-cache 
react-native run-androd 
相關問題