如何在React Native中安装仅适用于ios的包

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

我正在使用 ffmpeg-kit-react-native,但我只想为 ios 安装它...因为它使 android 的构建大小增加了 3 倍..我也不将它用于 android 。可以只为ios安装吗? 我在[email protected]

我尝试创建react-native.config.js,但它确实有效

android reactjs react-native ffmpeg android-ffmpeg
1个回答
0
投票

将此添加到您的

<your project>/react-native.config

module.exports = {
  ...
  dependencies: {
    'ffmpeg-kit-react-native': {
      platforms: {
        android: null,
      },
    },
  },
};
© www.soinside.com 2019 - 2024. All rights reserved.