skip to Main Content

I am using the expo camera ,if i am using the expo camera get i get the mov file in IOS but we want the mp4 file and i try to install the package of react-native-mov-to-mp4
https://www.npmjs.com/package/react-native-mov-to-mp4 its install in android but if i install in ios its not reflected the library in pods and this librray show me this error i shared in below:

Could not find a declaration file for module ‘react-native-mov-to-mp4’. ‘/Users/admiin/groupmembers/SmartEyeMobileApp/node_modules/react-native-mov-to-mp4/movToMp4.ios.js’ implicitly has an ‘any’ type.
Try npm i --save-dev @types/react-native-mov-to-mp4 if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-mov-to-mp4';

and if i install the npm i --save-dev @types/react-native-mov-to-mp4 that package its shows its not in registry
‘@types/react-native-mov-to-mp4@*’ is not in this registry.

2

Answers


  1. I can’t comment so I’m writing this as an answer, I recently also came into this situation what worked for me basically

    React Native FFMPEg Package

    With the help of this library I was able to convert, reduce and take thumbnail of video please do check.

    Login or Signup to reply.
  2. This @types/react-native-mov-to-mp4 library does not exist, so you can try option 2: add a new declaration (.d.ts) file containing declare module 'react-native-mov-to-mp4';:

    1. Create a declaration file (like typing.d.ts) in root project folder
    2. Add below code to that file:
    declare module 'react-native-mov-to-mp4';
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search