ある本のチュートリアルの一部なのですが、記載の通りに入力しても、「/module:/App.js: Unexpected reserved word 'static'」とエラーで返されてしまいます。
staticの部分が始めて触れる部分なので、Googleで調べてみても答えが分かりませんでした。
下記にコードの一部を載せます。
React Nativeに知見のある方、どなたかご教示をお願い致します。
class ElementScreen extends React.Component { static navigationOptions = ({navigation}) => { return { title: navigation.getParam('title', '') } } render() { const { navigation } = this.props const element = navigation.getParam('element', undefined) if (element === undefined) { return (<View />) } let tagItem = [] for (const property in element.tags) { tagItems.push([property, element.tags[property]]) }
・・・
あなたの回答
tips
プレビュー