thundersdata-frontend / rn-template

雷数前端react native项目模版
Apache License 2.0
88 stars 35 forks source link

IOS真機調試出錯 "您好像忘记使用Portal.Host包裹您的应用了。建议您使用ThemeProvider,它内置了Portal.Host" #42

Closed 821wkli closed 1 year ago

821wkli commented 1 year ago

@chj-damon

在Simulator上是沒有這個問題的, 可以正常運行。

但xcode build 在真機測試就出現這個問題

Model: Iphone SE 2 OS: 15.6.1

image

package.json

{
  "name": "rn-template",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "android:dev": "ENVFILE=.env.dev react-native run-android",
    "android:staging": "cd ./android && ENVFILE=.env.staging ./gradlew app:assembleRelease",
    "android:prod": "cd ./android && ENVFILE=.env.prod ./gradlew app:assembleRelease",
    "ios": "react-native run-ios",
    "start": "watchman watch-del-all && react-native start --reset-cache",
    "eslint": "eslint --fix --ext .ts,.tsx src/",
    "prettier": "prettier --check src/**/*.tsx --write",
    "clean": "react-native-clean-project",
    "postinstall": "npx husky install && npx patch-package",
    "commit": "git-cz",
    "tsc": "tsc -p tsconfig.json",
    "pod": "cd ios && pod install && cd ..",
    "test": "jest --passWithNoTests --detectOpenHandles --watch"
  },
  "config": {
    "commitizen": {
      "path": "node_modules/cz-customizable"
    }
  },
  "lint-staged": {
    "src/**/*.{js,ts,tsx}": [
      "npm run eslint",
      "npm run prettier"
    ]
  },
  "dependencies": {
    "@byron-react-native/refresh-control": "^1.1.2",
    "@react-native-clipboard/clipboard": "^1.10.0",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-community/netinfo": "^8.3.0",
    "@react-native-picker/picker": "^2.4.1",
    "@react-navigation/bottom-tabs": "^6.3.1",
    "@react-navigation/native": "^6.0.10",
    "@react-navigation/stack": "^6.2.1",
    "@shopify/restyle": "2.0.0",
    "@td-design/react-native": "^4.0.2",
    "@td-design/react-native-calendar": "^2.3.9",
    "@td-design/react-native-echarts": "^5.3.0",
    "@td-design/react-native-image-picker": "^1.6.0",
    "@td-design/react-native-picker": "^1.10.2",
    "@td-design/react-native-tabs": "^3.2.1",
    "@td-design/rn-hooks": "^2.2.7",
    "dayjs": "^1.10.7",
    "immer": "^9.0.12",
    "jotai": "^1.6.0",
    "jotai-modular": "^1.3.1",
    "lodash-es": "^4.17.21",
    "rc-field-form": "^1.22.0",
    "react": "^17.0.2",
    "react-error-boundary": "^3.1.4",
    "react-native": "^0.66.3",
    "react-native-background-timer": "^2.4.1",
    "react-native-bootsplash": "^4.1.3",
    "react-native-config": "^1.4.5",
    "react-native-exception-handler": "^2.10.10",
    "react-native-fast-image": "^8.5.11",
    "react-native-gesture-handler": "^2.4.2",
    "react-native-image-picker": "^4.8.1",
    "react-native-image-resizer": "^1.4.5",
    "react-native-mmkv": "^2.1.0",
    "react-native-pager-view": "^6.1.2",
    "react-native-reanimated": "^2.4.1",
    "react-native-redash": "^16.2.3",
    "react-native-restart": "0.0.24",
    "react-native-safe-area-context": "^4.2.2",
    "react-native-screens": "^3.12.0",
    "react-native-svg": "^12.1.1",
    "react-native-tab-view": "^3.3.4",
    "react-native-webp-format": "^1.1.2",
    "react-native-webview": "^11.26.0",
    "recyclerlistview": "^3.0.5",
    "recyclerlistview-masonrylayoutmanager": "^3.0.14",
    "rn-fetch-blob": "^0.12.0",
    "umi-request": "^1.4.0"
  },
  "devDependencies": {
    "@babel/core": "^7.17.5",
    "@babel/runtime": "^7.17.2",
    "@bam.tech/react-native-make": "^3.0.3",
    "@commitlint/cli": "^16.2.1",
    "@commitlint/config-conventional": "^16.2.1",
    "@react-native-community/eslint-config": "^3.0.1",
    "@react-navigation/devtools": "^6.0.4",
    "@td-design/pont-engine": "1.0.3",
    "@td-design/svgicon-cli": "^1.5.1",
    "@testing-library/react-hooks": "^7.0.2",
    "@types/jest": "^27.0.3",
    "@types/lodash": "^4.14.178",
    "@types/lodash-es": "^4.17.5",
    "@types/react-native": "^0.66.16",
    "@typescript-eslint/eslint-plugin": "^5.12.1",
    "@typescript-eslint/parser": "^5.12.1",
    "babel-jest": "^27.5.1",
    "babel-plugin-import": "^1.13.3",
    "babel-plugin-module-resolver": "^4.1.0",
    "babel-plugin-transform-remove-console": "^6.9.4",
    "commitizen": "^4.2.3",
    "cz-customizable": "^6.3.0",
    "eslint": "^8.9.0",
    "eslint-config-prettier": "^8.4.0",
    "eslint-import-resolver-typescript": "^2.5.0",
    "eslint-plugin-import": "^2.25.3",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-react": "^7.29.4",
    "eslint-plugin-react-hooks": "^4.3.0",
    "eslint-plugin-react-native": "4.0.0",
    "eslint-plugin-replace-hooks": "^1.0.3",
    "husky": "^7.0.4",
    "inquirer": "^8.2.0",
    "jest": "^27.5.1",
    "lint-staged": "^12.3.4",
    "lorem-ipsum": "^2.0.4",
    "metro-react-native-babel-preset": "^0.66.2",
    "npm-run-all": "^4.1.5",
    "patch-package": "^6.4.7",
    "prettier": "^2.5.0",
    "react-native-clean-project": "^4.0.0",
    "react-native-flipper": "^0.128.4",
    "react-test-renderer": "^17.0.2",
    "shelljs": "^0.8.5",
    "ts-jest": "^27.1.3",
    "typescript": "4.5.4"
  }
}
821wkli commented 1 year ago

已解決,git pull 時,app.tsx 有問題,導致沒更新

chj-damon commented 1 year ago

好的。昨晚上也提交了一些改动,你可以更新一下。