【发布时间】:2019-09-02 16:25:00
【问题描述】:
初学者问题。错误说找不到变量:“查看”
我编写此代码是为了将设计集成到我的代码中,但它给出:“找不到变量:查看”我错过了什么
import React from 'react';
import {StyleSheet} from "react-native" ;
export default class MenuButton extends React.Component {
render() {
return (
<View menu={burger.menuIcon}>
</View>
)
}
}
const burger = StyleSheet.create({
menuIcon: {
color : 'rgba(255,255,255,0.0)',
top : 17 ,
height : 5 ,
width : 6 ,
position : 'absolute' ,
margin : 0,
left : 26
}});
我希望一个没有错误的空白屏幕
【问题讨论】:
标签: javascript html react-native frontend