Sunday, May 26, 2024
HomeiOS DevelopmentReact Expo Mission Error: Can't discover native module 'ExponentImagePicker' on iOS Machine

React Expo Mission Error: Can’t discover native module ‘ExponentImagePicker’ on iOS Machine


I adopted the “Get Began” information on the Dwelling tab within the expo web site and configured my venture for an iOS gadget improvement construct. I’m additionally related to the Expo Software Companies (EAS).

After getting began, I ran npm run reset-project and started following together with the “Get Began” information within the Be taught tab.

All the things was working wonderful till I reached the Picture Picker part. I put in `expo-image-picker’ and added the next traces of code in my index.tsx file:

export default perform Index() {
    const pickImageAsync = async () => {
        let outcome = await ImagePicker.launchImageLibraryAsync({
            allowsEditing: true,
            high quality: 1,
        });

        if (!outcome.canceled) {
            console.log(outcome);
        } else {
            alert('You didn't choose any picture.');
        }
    };
// the remainder of the perform

My venture failed on my iOS gadget with the next error:
Error on iOS device

I should not have any errors when opening the venture on the net.

Do I have to run npx expo prebuild and repair this natively on iOS or is there a neater answer?

I’ve tried uninstalling and reinstalling the dependencies.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments