Comments (14)
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.
Same issue with RN55
it works fine, but when I runnings my jest tests - boom
from react-native-text-input-mask.
from react-native-text-input-mask.
@lfkwtz Jesus Christ! Thank you so much
from react-native-text-input-mask.
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.
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.
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.
Reference this updated readme --> #28
from react-native-text-input-mask.
follwed your readme
still experience this error @lfkwtz
import TextInputMask from 'react-native-text-input-mask';
from react-native-text-input-mask.
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.
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.
from react-native-text-input-mask.
I think we should add a human readable message like AsyncStorage:
https://github.com/react-native-community/async-storage/blob/LEGACY/docs/Jest-integration.md
from react-native-text-input-mask.
Addressed in #184
from react-native-text-input-mask.
Related Issues (20)
- cursor behavior HOT 1
- Spaces in mask is causing the numbers to render twice HOT 1
- Build failure with Expo SDK 46/RN 0.69.5 on Android: "Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.2." HOT 4
- NativeModule: RNTextInputMask is null HOT 15
- Is this library still maintaining ? HOT 1
- Mask completeness feature
- Incompitable Kotlin version HOT 1
- android build failed HOT 9
- The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. HOT 7
- Error: NativeModule: RNTextInputMask is null. HOT 2
- React Native 0.68.2: contextMenuHidden does not hide menu on Android on double tap - Disable Options(cut/copy/paste) on React-Native Text Input
- The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
- Error build android HOT 1
- Remove all dependencies for JCenter as it is being discontinued HOT 1
- Why upgrading to 0.71 makes masking smooth? HOT 2
- Bug - TextInputMask is not a controlled component HOT 1
- minimun ios version should not be 13
- Why is not there a normal documentation?
- When using with RN 0.70.6 application go crazy HOT 2
- Required a higher minimum deployment target HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-text-input-mask.