I’ve the next code:
import {
ViroBox,
ViroARScene,
ViroARSceneNavigator,
} from "@reactvision/react-viro";
import { StyleSheet, TouchableOpacity, TouchableWithoutFeedback } from "react-native";
const HelloWorldSceneAR = () => {
return (
{console.log("Clicked")}} />
);
};
export default () => {
return (
);
};
var kinds = StyleSheet.create({
f1: { flex: 1 }
});
This code runs superb on Android units. However on iOS units, I get the error:
Exception thrown whereas executing UI block: -[VRTBox setOnClick:]: unrecognized selector despatched to occasion 0x111595d00
If I delete the onClick
, then the error message on iOS units disappear. Nevertheless, this implies I lose the power to faucet on the ViroBox on iOS units.
I additionally tried this:
{console.log("Clicked")}}>
However this gave the error
Exception thrown whereas executing UI block: -[RCTView setSuperview:]: unrecognized selector despatched to occasion 0x1115868e0
I additionally tried this:
{console.log("Clicked")}}>
However that gave this error:
Exception thrown whereas executing UI block: -[VRTBox setOnClick:]: unrecognized selector despatched to occasion 0x111595d10
What am I doing improper?