react-native-text-input-reset | temporary hack around a bug
kandi X-RAY | react-native-text-input-reset Summary
kandi X-RAY | react-native-text-input-reset Summary
A temporary hack around a bug found in some android keyboards so that the contents of a TextInput can be properly cleared.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Reset keyboard input
- Create a list of JS modules
- Create native native modules
- Create view managers
react-native-text-input-reset Key Features
react-native-text-input-reset Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-text-input-reset
QUESTION
Yesterday my app was building correctly and today without changing anything I'm not able to build anymore, I'm getting this error:
Android dependency 'com.google.android.gms:play-services-stats' has >different version for the compile (16.0.1) and runtime (17.0.0) >classpath. You should manually set the same version via >DependencyResolution
I tried to bypass this with "com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true" and clean the project many times, but the error is still here.
My app/build.gradle file :
...ANSWER
Answered 2019-Jun-18 at 14:31This comment on github provides the answer to your question (and mine):
A dependency (react-native-device-info
in this case) was using the latest version of one of its dependencies instead of a fixed/pinned version. When a new version of google services was released yesterday, it caused the build to pull in the new version for device-info
, thereby causing the conflict with other dependencies that correctly pin the version they need.
The solution is to do what is explained in the linked post in your android/app/build.gradle
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-text-input-reset
Add import com.nikolaiwarner.RNTextInputReset.RNTextInputResetPackage; to the imports at the top of the file
Add new RNTextInputResetPackage() to the list returned by the getPackages() method
Append the following lines to android/settings.gradle: include ':react-native-text-input-reset' project(':react-native-text-input-reset').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-text-input-reset/android')
Insert the following lines inside the dependencies block in android/app/build.gradle: compile project(':react-native-text-input-reset')
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page