App crashes passing a function into onFacesDetected/onBarcodeScanned using fresh Bare RN App

App crashes when using expo-camera + react-native-unimodules in Bare RN App.

I’ve only tested in android.
I went through these >
npx react-native init AwesomeTSProject --template react-native-template-typescript
yarn add react-native-unimodules (go through unimodules android installation)
expo install expo-camera (+ maven config)
“dependencies”: {
“expo-camera”: “^9.0.0”,
“react”: “16.13.1”,
“react-native”: “0.63.4”,
“react-native-unimodules”: “^0.12.0”
},

Does face detector not work in bare RN app ?
Camera itself works.
The crash only happens when I insert any function, () => {} into onFacesDetected/onBarcodeScanned after checking with onCameraReady.

Are you saying that the same code works in the managed workflow?
Can you post the code?

I have not tested in a managed workflow…

The code is basically

export default function App() {
const [hasPermission, setHasPermission] = useState(null);
const [isCamReady, setIsCamReady] = useState(false);

useEffect(() => {
(async () => {
const { status } = await Camera.requestPermissionsAsync();
setHasPermission(status === ‘granted’);
})();
}, );
if (hasPermission === null) {
return ;
}
if (hasPermission === false) {
return No access to camera;
}

return (
<View style={{ flex: 1 }}>
<Camera
style={{ flex: 1 }}
type={Camera.Constants.Type.front}
ratio={‘16:9’}
onCameraReady={() => setIsCamReady(true)}
// onFacesDetected={isCamReady ? (faces) => { console.log(faces) } : null}
>


);
}