Can not resolve module

Hi,
I have implemented flashlight feature for iOS and its working fine on device. But when I try to commit code in branch it gives error- Can not resolve module “react-native-torch”.
I have added this lib in package.json and using it in .native file.
Any solution?

Thanks

Have you linked it the pods file? (Assuming it requires native parts)

Yes I already did, that why it’s working on iOS device.
Added below line in pod file
pod ‘react-native-torch’, :path => ‘…/node_modules/react-native-torch’

But gives error while commit code.

@saghul
I have attached screenshot of error which I am getting while commit.

You can always bypass the commit hook by doing git commit --no-verify I’m not sure why flow it’s complaining :-/