Expo upgrade replace react-native tar.gz url by the npm version

Please provide the following:

  1. SDK Version: 40
  2. Platforms(Android/iOS/web/all): all

In order to simplify common component management accross my company apps, I created a library for that.

This library use Expo with Storybook for testing purpose.

To avoid build issues on final apps, I have to move the expo ecosystem to dev dependencies like that:

{
  "name": "@company/apps-components",
  "version": "0.0.0-dev",
  "description": "apps' common components.",
  "main": "node_modules/expo/AppEntry.js",
  "types": "dist/index.d.ts",
  "react-native": "src/index.ts",
  "files": [
    "dist",
    "src/components",
    "src/utils",
    "src/index.ts"
  ],
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "storybook": "start-storybook -h 0.0.0.0 -p 7007",
    "build": "rm -rf dist && tsc",
    "build-storybook": "build-storybook"
  },
  "dependencies": {
    "@expo-google-fonts/lato": "^0.1.0",
    "@expo-google-fonts/poppins": "^0.1.0",
    "expo-font": "~8.3.0"
  },
  "devDependencies": {
    "@babel/core": "~7.9.0",
    "@company/apps-config": "^1.1.0",
    "@company/design": "^2.2.0",
    "@storybook/addon-knobs": "^5.3.21",
    "@storybook/addon-links": "^5.3.21",
    "@storybook/addon-ondevice-knobs": "^5.3.23",
    "@storybook/react-native": "^5.3.23",
    "@storybook/react-native-server": "^5.3.23",
    "@types/react": "~16.9.35",
    "@types/react-dom": "~16.9.8",
    "@types/react-native": "~0.63.2",
    "babel-loader": "^8.2.2",
    "expo": "~39.0.2",
    "expo-constants": "~9.2.0",
    "expo-status-bar": "^1.0.3",
    "internal-ip": "^6.2.0",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-39.0.4.tar.gz",
    "react-native-web": "~0.13.12",
    "typescript": "~3.9.5"
  },
  "peerDependencies": {
    "react": "*",
    "react-native": "*"
  },
  "publishConfig": {
    "@company:registry": "https://gitlab.com/api/v4/projects/xxx/packages/npm/"
  }
}

After expo upgrade command run, the react-native line is turned into 0.63.4 instead of https://github.com/expo/react-native/archive/sdk-40.0.0.tar.gz as it is done on my end application projects.

It does not looks to break the expo setup, but I am wondering why the behavior is not the same and if it’s an issue.

Regards

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