question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: null is not an object (evaluating 'RNTextInputMask.mask') in v3.0.0

See original GitHub issue

I have got this error after installing the package. In package.json: "react-native-text-input-mask": "^3.0.0", I thought it was fixed in the issue: https://github.com/react-native-text-input-mask/react-native-text-input-mask/issues/156 but the error still exists.

obraz

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

66reactions
parkcoopcommented, Mar 20, 2021

OKAY IT WORKS NOW (without use_frameworks!)

  • installed latest 3.0.3
  • add this line to pod file pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text', :modular_headers => true
  • pod install

Finally built successfully on iOS

6reactions
HADEERALycommented, Mar 13, 2021

if you use react native cli then 1.npm uninstall react-native-text-input-mask 2. use 0.3.2 version – npm install --save react-native-text-input-mask@0.3.2 or yarn add react-native-text-input-mask@0.3.2 3.npx react-native run-android it worked fine with me in android

this package won’t work for expo I tested it so many times so I used another package => npm i react-native-masked-text

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-native, "Native module cannot be null" - Stack Overflow
1- In iOS message is 'Native module cannot be null'. 2- In Android message is 'null is not an object evaluating RNFSManager etc'....
Read more >
react-native-document-picker not working. What's wrong - Reddit
[Unhandled promise rejection: TypeError: null is not an object (evaluating ... catch (err) { setSingleFile(null) if (DocumentPicker.
Read more >
Link external lib to detach expo project in xcode 10 - LOCKED
Follow README : the error undefined is not an object (evaluating '_reactNative.NativeModules.RNTextInputMask.mask'). Linking as external lib ...
Read more >
How To Fix TypeError null is not an object (evaluating ...
React Native Tutorial - This Video ShowsHow To Fix TypeError null is not an object ( evaluating 'dispatcher.useState) TypeError react native ...
Read more >
React Native手册| 豪翔天下
react-native-text-input-mask. 比如电话号码输入的mask模式; 如果出现TypeError: null is not an object (evaluating 'RNTextInputMask')in v3.0.0, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found