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.

Doesn't work on iOS - undefined is not an object (evaluating ... NativeModules.RNTextInputMask.mask)

See original GitHub issue

When I launch my iOS app I get the following error:

undefined is not an object (evaluating '_reactNative.NativeModules.RNTextInputMask.mask')

error

I followed all the instructions in the README for iOS

  1. added InputMask.framework to embedded binaries
  2. 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

4reactions
SamuelHiroyukicommented, Apr 17, 2019

@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

issue

2reactions
dogukankotancommented, Apr 11, 2019

I found the solution. Make sure import of libRNTextInputMask.a after the libRCTText.a. 😄

Thanks. Ekran Resmi 2019-04-11 11 50 33

Read more comments on GitHub >

github_iconTop 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 >

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