It works now!
I’m using the CameraRollPicker from react-native-camera roll picker
(:require [“react-native-camera-roll-picker” :default CameraRollPicker])
(defn camera-roll-picker [] [:> CameraRollPicker {:callback (fn [] (prn “picked”))}])
(defn init [] (dispatch [:register-db]) (render-root “Humboi” (r/as-element [camera-roll-picker])))
but the app is crashing upon launch and there’s no error given
how to fix this?
this happens in the ios simulator
on the device, it asked for permission to access photos, and then shows a blank screen
@ps Lots of questions and few thanks...
thanks a ton! @admin055
for all the questions already answered
thanks a lot everyone. I really appreciate the help
actually I’m also getting the following warning:
Tue Jan 19 2021 13:42:58.383] WARN Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you’re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run npx react-codemod rename-unsafe-lifecycles
in your project source folder.
Please update the following components: %s CameraRollPicker
That appears to be in CameraRollPicker. React moves fast and breaks things, so you should be ready to upgrade that dependency when it’s upgraded.