androidreactjsreact-nativeffmpegandroid-ffmpeg

How to install a package / library only for ios in react native


am using ffmpeg-kit-react-native but i want to install it for ios only ...as it increases the build size 3X for android .. am not using it for android as well . is it possible to install it for ios only? am on react-native@0.64.4

i tried creating react-native.config.js but it does work


Solution

  • it was react-native.config.js all along ... i was not defining package correctly .

    module.exports = {
      dependencies: {
        'ffmpeg-kit-react-native': {
          platforms: {
            android: null,
          },
        },
      },
    };