Giter Club home page Giter Club logo

Comments (14)

WeiLiangTan avatar WeiLiangTan commented on August 17, 2024 4

I also facing the same issue.

Added InputMask framework to Embedded Binaries on xcode.

Tried react-native link, but doesn't work.

Any updates on this issue would be a great help. Thanks

from react-native-text-input-mask.

rtt63 avatar rtt63 commented on August 17, 2024 2

Same issue with RN55

it works fine, but when I runnings my jest tests - boom

from react-native-text-input-mask.

lfkwtz avatar lfkwtz commented on August 17, 2024 1

@komalov #17 (comment)

from react-native-text-input-mask.

rtt63 avatar rtt63 commented on August 17, 2024 1

@lfkwtz Jesus Christ! Thank you so much

from react-native-text-input-mask.

LucasMMota avatar LucasMMota commented on August 17, 2024 1

Perfectly working on Android, but not working on IOS, I'm getting the same error
Cannot read property 'mask' of undefined.
I've already added binary on Xcode. I don't know what to do.

Edit:
I've found this and it's perfectly working for both platforms until now: https://github.com/benhurott/react-native-masked-text

:)

from react-native-text-input-mask.

aertmann avatar aertmann commented on August 17, 2024 1

Had same issue on iOS and found a solution.

"Embedded Binaries in General tab of Target and check ‘Yes’ in ‘Always Embed Swift Standard Libraries’ of Build Settings." didn't work for me. But after doing this and building the project I got a new file called libRNTextInputMask.a that I could select in "Linked Frameworks and Libraries".

Maybe this helps someone else. Could be the compilation just didn't work in my project for some reason.

Btw. cannot recommend https://github.com/benhurott/react-native-masked-text as it caused performance issues as the masking is done in JS and gets behind the native thread and is thus is laggy.

from react-native-text-input-mask.

idrakimuhamad avatar idrakimuhamad commented on August 17, 2024

I got that error when I try to run my app, right after npm install the package. Maybe to stop your current build, do the necessary drag and drop and the rebuild your app

from react-native-text-input-mask.

lfkwtz avatar lfkwtz commented on August 17, 2024

Reference this updated readme --> #28

from react-native-text-input-mask.

GituBojan avatar GituBojan commented on August 17, 2024

follwed your readme
still experience this error @lfkwtz

import TextInputMask from 'react-native-text-input-mask';

from react-native-text-input-mask.

pipinov avatar pipinov commented on August 17, 2024

For android:

add to android/app/src/main/java/com/project_name/MainApplication.java

import com.RNTextInputMask.RNTextInputMaskPackage;

and add new RNTextInputMaskPackage() to getPackages

 protected List<ReactPackage> getPackages() {
    // Add additional packages you require here
    // No need to add RnnPackage and MainReactPackage
    return Arrays.<ReactPackage>asList(
      new RNTextInputMaskPackage()
    );
  }

and make sure that you are linking package with command

react-native link react-native-text-input-mask

from react-native-text-input-mask.

hyze2d avatar hyze2d commented on August 17, 2024

Faced same issue, removed node modules, unlinked mask lib, reinstalled node modules, linked lib ( and relinked other ) , dragged lib to embedded lib's, set 'always embed' to yes. And it start to work

from react-native-text-input-mask.

aloneszjl avatar aloneszjl commented on August 17, 2024

@aertmann #73 (comment)

from react-native-text-input-mask.

retyui avatar retyui commented on August 17, 2024

I think we should add a human readable message like AsyncStorage:

https://github.com/react-native-community/async-storage/blob/9aad474ff7ca64d34ef94358a39205a609455aca/lib/AsyncStorage.js#L21-L38

https://github.com/react-native-community/async-storage/blob/LEGACY/docs/Jest-integration.md

from react-native-text-input-mask.

martintreurnicht avatar martintreurnicht commented on August 17, 2024

Addressed in #184

from react-native-text-input-mask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.