Undefined is not an object
See original GitHub issueAccording to the installation README, after installing and linking android “just works”, however it is not working for me. Working great on iOS simulator and on iOS device, but when running on both android simulator and android device I get the following error:
undefined is not an object (evaluation '_reactNative.NativeModules.RNTextInputMask.mask')
See error here:
I have confirmed that in the settings.gradle is the following:
include ':react-native-text-input-mask'
project(':react-native-text-input-mask').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-text-input-mask/android')
and in the app/build.gradle is the following:
compile project(':react-native-text-input-mask')
Any help would be greatly appreciated! Really loving this package on iOS, works great.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:11
Top Results From Across the Web
TypeError: 'undefined' is not an object - Stack Overflow
1. Use a Javascript debugger like Firebug or the built-in debugger of Chrome. · Can you give some sample data? – loganfsmyth ·...
Read more >TypeError: undefined is not an object – React - DPS Computing
Simply, you're treating a variable like it is an object when it is not. 'undefined' means that your variable hasn't yet been defined...
Read more >TypeError: 'undefined' is not an object in JavaScript
The “TypeError: 'undefined' is not an object” error occurs when a property is accessed or a method is called on an undefined object....
Read more >27/3 - TypeError: undefined is not an object (evaluating 'family ...
Here's the message: TypeError: undefined is not an object (evaluating 'family[i].name') The code outputs the right values to the console, ...
Read more >undefined is not an object (evaluating 'mw.config.get ...
TypeError: undefined is not an object (evaluating 'mw.config.get('wgFormattedNamespaces')[namespace].replace'). Closed, ResolvedPublic. Actions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@warlock27 I just switched back to this package to try your solution and sure enough that worked. @ivanzotov you probably want to put this in the readme under installation as it seems several people are having this issue, sometimes linking doesn’t work and it’s always good to reiterate the manual installation process for both iOS and Android. Thanks @warlock27 for solving this issue.
@luskin @rscottcarson I find solution in this post https://blog.cloudboost.io/text-input-mask-for-react-native-3c04e82843a6.