react-native-text-input-mask: RNTextInputMask React/RCTBridge.h file not found

After run:

yarn install react-native-text-input-mask
react-native link react-native-text-input-mask

got this error on xcode RNTextInputMask React/RCTBridge.h file not found

How do I fix it?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 4
  • Comments: 23 (1 by maintainers)

Most upvoted comments

So, after much work done, i found a problem with the linking part of this library, which imported the wrong archives to my Libraries folder.

To fix that I’ve made the linking part myself on IOS(Android worked fine with the link). To do that, you right click your Libraries folder in xcode, and select “Add Files to [your project name]”, it will ask you which file you are willing to import… you go to your node_modules files in your project (assuming you already have added the react-native-text-input-mask and installed it) you find the react-native-text-input-mask project and search for RNTextInputMask.xcodeproj, click ok to import. Now you have this library imported in your project, and we must include it in the build phases. To do that you have to go to the “general” tab in xcode and drag and drop the libRNTextInputMask.a that is in the RNTextInputMask.xcodeproj > Products > libRNTextInputMask.a to your Linked Frameworks and Libraries. Clean your project and rebuild it, and its done.

It worked for me, idk if it will for everyone.

Since I got the lib linked (I think so)… I got this error: undefined is not an object (evaluating '_reactNative.NativeModules.RNTextInputMask.mask') @ivanzotov , do you have any idea?

Confirm getting the same issue with a clean install

image

anybody got the solution, i am also facing the same issue.

Add ‘headers serach path’ to your Build Settings. I’m using ‘expo’ and this paths works for me :

$(SRCROOT)/…/…/…/…/ios/Pods/Headers/Public $(SRCROOT)/…/…/…/…/ios/Pods/Headers/Public/React

where $SRCROOT is {$my_project_dir}/node_modules/react-native-text-input-mask/ios/RNTextInputMask

don’t forget “recursive” option for both paths.

You can set absolute paths to /Pods/Headers Something like this

{$your_project_dir}/ios/Pods/Headers/Public {$your_project_dir}/ios/Pods/Headers/Public/React

@frangeris what do you mean by migrating to pods Some solution that I tried were: https://stackoverflow.com/questions/50453883/react-native-build-failed-react-rctbridge-h-file-not-found/50460552

However, the top solution, when I went into manage scheme. There is no React, and it also says React(missing). There is a React-Core, and I tried using that, however the project still fails

also followed this link https://github.com/getsentry/sentry-react-native/issues/395#issuecomment-516757299 but did not work

anybody got the solution, i am also facing the same issue.

Still happening to me as well.

“react”: “16.4.1”, “react-native”: “0.60.4”, “react-native-text-input-mask”: “^1.0.6”

Can you re-open this issue @faustoct?

couldn’t find a solution so moved to https://github.com/benhurott/react-native-masked-text . when got a solution to this issue can go back to this plugin… that seems quite better…