为了在React Native中使用ART对象,我try 创建一个hello world,我得到了上面的异常,就好像库的一部分没有链接一样.我刚刚添加了以下代码:
import {
AppRegistry,
StyleSheet,
Text,
View,
ART
} from 'react-native';
...
<Text style={styles.instructions}>
Press Cmd+R to reload,{'\n'}
Cmd+D or shake for dev menu
</Text>
<ART.Shape
fill={"black"}
d={"M10,10 L 30,30"}/>
</View>
...
react-native init my-app
岁后到index.ios.js
岁.那么我做错了什么?我需要把一些包裹和rnpm
联系起来吗?
react native cli:0.2.0