使用 React Native 的应用程序剪辑和带有 Stripe 支付的即时应用程序

问题描述 投票:0回答:1

我正在努力将 App Clip / Instant App 的总大小保持在规定的 15mb 以下。

我正在使用 React Native,并希望继续这样做。 通过创建一个新的 React Native 项目并再次拉出并拉入 Stripe,似乎仅此一项就需要多达 7MB 的空间,因此很难遵守 15MB 的限制。

你碰巧知道转机吗,或者也许我遗漏了什么? 作为参考,这是依赖项列表(我可以使用它捆绑成 15.1mb 的总大小):

    "@expo/config-plugins": "~7.2.2",
    "@react-native-async-storage/async-storage": "1.18.2",
    "@react-navigation/native": "^6.1.2",
    "@react-navigation/native-stack": "^6.9.8",
    "@react-navigation/stack": "^6.3.11",
    "@shopify/restyle": "^2.1.0",
    "@stripe/stripe-react-native": "0.28.0",
    "@supabase/supabase-js": "^2.25.0",
    "@tanstack/react-query": "^4.22.0",
    "ahooks": "^3.7.4",
    "date-fns": "^2.30.0",
    "dotenv": "^16.0.3",
    "expo": "^49.0.0",
    "expo-asset": "~8.10.1",
    "expo-build-properties": "~0.8.3",
    "expo-constants": "~14.4.2",
    "expo-font": "~11.4.0",
    "expo-linking": "~5.0.2",
    "expo-splash-screen": "~0.20.5",
    "expo-status-bar": "~1.6.0",
    "expo-system-ui": "~2.4.0",
    "formik": "^2.2.9",
    "i18n-js": "^4.2.2",
    "immer": "^9.0.18",
    "jotai": "^1.13.1",
    "lodash": "^4.17.21",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.72.4",
    "react-native-app-clip": "^0.2.4",
    "react-native-device-info": "^10.8.0",
    "react-native-gesture-handler": "~2.12.0",
    "react-native-safe-area-context": "4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-url-polyfill": "^1.3.0",
    "zustand": "^4.3.2"
  },
  "devDependencies": {
    "@babel/core": "^7.20.12",
    "@bitetechnology/bite-types": "^1.0.11",
    "@types/jest": "^29.2.5",
    "@types/lodash": "^4.14.191",
    "@types/react": "~18.2.14",
    "@typescript-eslint/eslint-plugin": "^5.48.2",
    "@typescript-eslint/parser": "^5.48.2",
    "babel-eslint": "^10.1.0",
    "eslint": "^8.32.0",
    "eslint-config-prettier": "^8.6.0",
    "eslint-config-universe": "^11.1.1",
    "eslint-plugin-babel": "^5.3.1",
    "eslint-plugin-prettier": "^4.2.1",
    "eslint-plugin-react-hooks": "^4.6.0",
    "expo-dev-client": "~2.4.10",
    "expo-updates": "~0.18.13",
    "expo-web-browser": "~12.3.2",
    "expo-localization": "~14.3.0",
    "jest": "^29.3.1",
    "jest-expo": "^48.0.2",
    "metro-minify-uglify": "^0.76.8",
    "prettier": "^2.8.3",
    "react-test-renderer": "^18.2.0",
    "typescript": "^5.1.3"
  },```

react-native stripe-payments android-instant-apps apple-appclips
1个回答
0
投票

目前不可能,但您可以按照 https://github.com/stripe/stripe-react-native/issues/947 进行操作,当可用时应该进行更新。

© www.soinside.com 2019 - 2024. All rights reserved.