用grunt设置bootstrap.收到以下错误:
找不到模块npm-shrinkwrap
尝试npm安装shrinkwrap,仍然得到相同的错误.
我正在为 iOS 构建一个 React Native 应用程序。facebook 文档说宽度、高度、填充、边距等需要一个数字。
我想知道样式的默认单位是什么。
<View style={styles.box}>
<Text style={styles.text}> Test Component </Text>
</View>
var styles = ReactNative.StyleSheet.create({
box: {
padding: 10,
width:100,
height:100,
},
text: {
color: 'black',
fontSize: 30,
},
});
Run Code Online (Sandbox Code Playgroud)