skip to Main Content

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 [email protected]

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

2

Answers


  1. Chosen as BEST ANSWER

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

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

  2. Add this in your <your project>/react-native.config

    module.exports = {
      ...
      dependencies: {
        'ffmpeg-kit-react-native': {
          platforms: {
            android: null,
          },
        },
      },
    };
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search