類型“Readonly<{}> ”上不存在屬性“XX”。ts(2339)
解決辦法:
export default class LZMain extends React.Component<any,any>
將props和state類型定義成any就可以了;
類型“Readonly<{}> ”上不存在屬性“XX”。ts(2339)
解決辦法:
export default class LZMain extends React.Component<any,any>
將props和state類型定義成any就可以了;
序言 開始研究react-native來弄安卓和IOS ^_^~~~.歡迎騷擾:[email protected] 參考資料地址:https://reactnative.cn/docs/
//相當於button使用 <TouchableHighlight //點擊後的背景顏色 underlayColor="#1FB579"