[SOLVED] Exception with Camera.takePicture() on iOS


#1

Hi,
when I use this.camera.takePicture(), I have the following “red screen” error on iOS

Exception *** NSArrayIobjectAtIndex: index 2 beyond bounds [0 … 1] was thrown while invoking takPicture on target ExponentCameraManager with params
({ quality = 1 }, 2222, 2223)

“expo”: “^21.0.1”,
“react”: “16.0.0-alpha.12”,
“react-native”: “0.47.2”,

(code based on https://github.com/expo/camerja/blob/master/App.js)

using “react-native”: “https://github.com/expo/react-native/archive/sdk-20.0.0.tar.gz” solved the problem