Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

How to install expo that compatible with RN 0.66.4 #4163

@mangkoran

Description

@mangkoran

Summary

I followed the direction to use expo with RN 0.66.x given in expo/expo#15914 (comment). My project is Android-only. When I'm trying to run npx install-expo-modules, I got the error about iOS deployment target even though my project is Android only.

Environment

❯ expo diagnostics

  Expo CLI 5.0.3 environment info:
    System:
      OS: Linux 5.15 Arch Linux
      Shell: 3.3.1 - /bin/fish
    Binaries:
      Node: 14.18.1 - ~/.local/share/nvm/v14.18.1/bin/node
      Yarn: 1.22.17 - ~/.local/share/nvm/v14.18.1/bin/yarn
      npm: 8.3.2 - /usr/sbin/npm
    SDKs:
      Android SDK:
        API Levels: 29, 30
        Build Tools: 29.0.2, 30.0.2
    npmPackages:
      expo: ^44.0.0 => 44.0.1
      react: 17.0.1 => 17.0.1
      react-dom: 17.0.1 => 17.0.1
      react-native: 0.64.3 => 0.64.3
      react-native-web: 0.17.1 => 0.17.1
    Expo Workflow: bare

Please specify your device/emulator/simulator platform, model and version

WSA v.1.8.32836.0

Error output

This is what I get in my personal project

❯ npx install-expo-modules
✔ Expo modules minimum iOS requirement is 12.0. This tool will change your iOS deployment target to 12.0. Do you want to continue? … yes
› Updating your project...
Uncaught Error [Error: [ios.dangerous]: withIosDangerousBaseMod: ENOENT: no such file or directory, open '/home/mangkoran/repos/crowdfinder-client/ios/Podfile'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/mangkoran/repos/crowdfinder-client/ios/Podfile'
}

Reproducible demo or steps to reproduce from a blank project

I am not sure that I can provide reproducible demo like what I encountered in my project. But as my project is Android-only, I think deleting the ios directory is enough.

Steps:

  1. npx react-native init RN066 --version 0.66
  2. cd RN066
  3. rm -rf ios
  4. npx install-expo-modules

Edit: It gave the similar error message as what I encountered in my personal project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions