react-native - 使用 React Native 进行应用程序剪辑和带有 Stripe 支付的即时应用程序

标签 react-native stripe-payments android-instant-apps apple-appclips

我正在努力将 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"
  },```

最佳答案

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

关于react-native - 使用 React Native 进行应用程序剪辑和带有 Stripe 支付的即时应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/77158898/

相关文章:

android - Kapt 不在即时应用功能模块中生成类

Android Production Instant App 未在 Google Play 商店中显示 "Try Now"按钮

javascript - 忽略 Android React Native 上的 SSL 证书检查

javascript - 使用 moment 获取日期和当前日期之间的时间差

javascript - React Navigation 在导航时转到初始路线

php - Laravel - 如何从 Stripe 中检索带有元数据的所有订阅

php - Stripe 结账 - PHP

android - 用户注销 React Native 应用程序时如何删除 Firebase 云消息传递 token ?

ios - Stripe 模块的解析返回错误

java - NoClassDefFoundError 无法解析基本模块中的数据绑定(bind)类