Doesn't work on iOS - undefined is not an object (evaluating ... NativeModules.RNTextInputMask.mask)
See original GitHub issueWhen I launch my iOS app I get the following error:
undefined is not an object (evaluating '_reactNative.NativeModules.RNTextInputMask.mask')
I followed all the instructions in the README for iOS
- added InputMask.framework to embedded binaries
- enabled Always Embed Swift Standard Libraries
Do I need to do something else? It works fine on Android.
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
Memory: 34.05 MB / 16.00 GB
Shell: 5.6.2 - /usr/local/bin/zsh
Binaries:
Node: 11.0.0 - /usr/local/bin/node
Yarn: 1.12.1 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: ^16.6.1 => 16.6.1
react-native: 0.57.2 => 0.57.2
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
Doesn't work on iOS - undefined is not an object (evaluating ...
When I launch my iOS app I get the following error: undefined is not an object (evaluating '_reactNative.NativeModules.
Read more >"null is not an object (evaluating '_reactNative.NativeModules ...
I have an expo project that's been ejected, and I got past this by stopping metro, running npx pod-install , and then uninstalling...
Read more >React Native: undefined is not an object (evaluating '_this ...
Hi everybody, I have a react-native app created with RN CLI, using react-native 0.63, I'm trying to use SectionList but I'm getting the ......
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 >react-native-text-input-mask - npm
Text input mask for React Native.. Latest version: 3.1.4, ... Start using react-native-text-input-mask in your project by running `npm i ...
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
@dogukankotan I’ve tried importing but it still is not working. I did the whole linking process, but it shows me the same error yet. Did you do any more configuration on your project?
I’m using react-native-text-input-mask 1.0.1 n react-native 0.59.4 on macOS Mojave 10.14.3
I found the solution. Make sure import of
libRNTextInputMask.a
after thelibRCTText.a
. 😄Thanks.