I'm trying to use viroReact to find an image and then display some media content.
I want to make it so after the anchor is found i can go to a custom react view since it is not possible to display basic react elements in an AR scene with viro.
I have considered calling a function from the app.js class (main class) to get the job done, like so:
<ViroARImageMarker target={"fleur"}
onAnchorFound={this.mainClass.navigateTowherever}
Will this work? Or is there a better way?
Consider Using
ViroFlexViewto render the content you need like you would use a normalViewlike so :check the docs for it: https://docs.viromedia.com/docs/viroflexview