SaveToCamerraRoll fails on android

#1

Hey, this is my code: `

       if (Platform.OS === 'ios') {
           CameraRoll.saveToCameraRoll(event.nativeEvent.data)

       }
        const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL)

         if (status === 'granted') {
             try {
                 CameraRoll.saveToCameraRoll(event.nativeEvent.data)

             } catch(err) {
                    alert(err)
             }

         }`

It’s working on iOS but fails on android and the whole app crashes.
I think its related to permissions but I’m not sure,
Has anyone encountered something similar?

using Expo 26.

closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.