Closed stevekuznetsov closed 1 year ago
My question would be - does this project expect to work with Expo Go, or is a custom dev build always going to be required? Also - if I never use the photo picker, why am I required to have that native module just by importing the module?
My question would be - does this project expect to work with Expo Go, or is a custom dev build always going to be required? Also - if I never use the photo picker, why am I required to have that native module just by importing the module?
Use babel-plugin-import (Recommended) @stevekuznetsov
See the detail in https://rn.mobile.ant.design/docs/react/introduce
@1uokun would that solve my problem if and only if I did not use the component (CameraRollPicker
) that imported (CameraRollIOSPermission
)? Should this library use the expo version of the camera roll to be compatible?
The Expo Go app doesn't support custom native modules(CameraRollIOSPermission
is a NativeModule: code)
@1uokun yes, but expo has it's own camera roll: https://docs.expo.dev/versions/latest/sdk/imagepicker/ and if it's a goal of this project to be expo-compatible, would it be better to use that library?
Expo-compatible is not this project's first,
so we will not import any expo-related libraries in the near future, include https://docs.expo.dev/versions/latest/sdk/imagepicker/
Reproduction link
https://github.com/stevekuznetsov/ant-design-react-native-reproducer
Steps to reproduce
Then, import and use
<Card>
:Then, view app in Expo Go
What is expected?
App works and displays an empty card.
What is actually happening?
I did not use any photo components, just one
<Card>
import.