You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classMenuSceneextendsReact.Component{render(){return(<View><StatusBarhidden={true}></StatusBar><Text>This is MenuScene</Text><TouchableOpacityonPress={()=>{console.log("Actions",Actions);Actions.GameScene();}}><Text>Go to Game Scene</Text></TouchableOpacity></View>);}}
Clicking on the TouchableOpacity gives me an "actions[type] is not a function" error.
I did a console.log to inspect the "Actions", here is what I get in console:
Anyone can see why I am getting the error? Thanks.
The text was updated successfully, but these errors were encountered:
I am having issue with version 4.0.0-beta.11 (I used Version 3.38.0 with my previous project, things were all working fine).
Anyway, here is the basic structure:
The initial scene looks like this:
Clicking on the TouchableOpacity gives me an "actions[type] is not a function" error.
I did a console.log to inspect the "Actions", here is what I get in console:
Anyone can see why I am getting the error? Thanks.
The text was updated successfully, but these errors were encountered: