skip to Main Content

React Native Images – require vs import

React Native has a mechanism to automatically bundle and serve images corresponding to device's screen density using @2x and @3x suffixes. See: https://reactnative.dev/docs/images The docs mention a require syntax, but I was wondering if this also works for import syntax?…

VIEW QUESTION

Expo-Camera, takePictureAsync undefined (Unhandled promise rejection: TypeError: ref.current.takePictureAsync is not a function) – React native

I'm trying to create react app with expo using expo-camera for taking pictures. I have separately components MeasurementCameraScreen and MeasurementCamera. I'm using useRef() hook to be able to call takePictureAsync() from the MeasuremenCameraScreen. When pressing the take image -button takePicture()…

VIEW QUESTION
Back To Top
Search