My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How to link a dependency automatically in React Native module?

Ivan Zotov's photo
Ivan Zotov
·Aug 24, 2017

I'm working on React Native module for text input mask – github.com/react-native-community/react-nat.., and iOS part depends on other project – https://github.com/RedMadRobot/input-mask-ios.

After installing the module with npm i --save react-native-text-input-mask and linking with react-native link everything is ok in simulator, but to make it working on a real iOS device I have to link the InputMask from Products to Embedded Binaries in the XCode.

What is the right way to create a React Native module so dependency linked automatically?