Comments (18)
I want to disable KeyboardManager in specific screen but KeyboardManager.setEnable(false) doesn't work.
I've tested Sample Project but "Enable/Disable" switch doesn't work
I cannot find correct answer from above comments. Can you help me?
from react-native-keyboard-manager.
For toolbar, use:
KeyboardManager.setToolbarPreviousNextButtonEnable(true/false);
from react-native-keyboard-manager.
Thanks for your response .
KeyboardManager.setToolbarPreviousNextButtonEnable(true/false);
This don't work for me. In my case like below pickture:
My textfield don't need "Button Done". I try dismiss this but my App is crashed ...
Test case 1 (App crashed):
<Input onFocus={() => KeyboardManager.setEnable(true)} onBlur={() => KeyboardManager.setEnable(false) }/>
Test case 2(App crashed):
<Input onFocus={() => KeyboardManager.setEnableAutoToolbar(true)} onBlur={() => KeyboardManager.setEnableAutoToolbar(false) }/>
from react-native-keyboard-manager.
The picture did not load.
The "Done" button is directly related to "previous / next". It is not possible to hide the "Done" and show the "previous / next".
You should not enable it on onFocus / onBlur
.
See the sample project.
from react-native-keyboard-manager.
I sorry for missing image and uploaded this.
In my case : I have a button "Next". So, The button "Done" is unnecessary thing
from react-native-keyboard-manager.
So you want to remove the entire toolbar?
from react-native-keyboard-manager.
yes, if it is possible?
from react-native-keyboard-manager.
Yes, is possible with KeyboardManager.setEnableAutoToolbar(false);
.
But in current version you will lose also the React Native numeric keyboard toolbar. This is a problem because the numeric keyboard does not have the action button.
I fixed that in master branch, then if you want to try, use:
"dependencies": {
"react-native-keyboard-manager": "git+https://github.com/douglasjunior/react-native-keyboard-manager.git#master"
}
from react-native-keyboard-manager.
Thanks for your response.
from react-native-keyboard-manager.
Let me know if it works for you, because I'm going to publish a new release.
from react-native-keyboard-manager.
Yes, setEnableAutoToolbar
work for me. But setToolbarPreviousNextButtonEnable
not working any more. I have linked the IQKeyboardManager resources to my Xcode project and I tested module like sample project.
from react-native-keyboard-manager.
I asked if you wanted to remove the toolbar, and you said yes.
Previous/Next button is part of the toolbar. So, if removes the toolbar, it removes de previous/next too.
from react-native-keyboard-manager.
Test case 1 :
setEnableAutoToolbar = true, setToolbarPreviousNextButtonEnable = true, setToolbarDoneBarButtonItemText = 'Done'
Expect result : The toolbar show 'Done' & 'PreviousNextButton
Real result : The toolbar show 'Done' ❗️
Test case 2 :
setEnable = false
Expect result : The toolbar hiden
Real result : The toolbar hiden ✅
Test case 3 :
setEnableAutoToolbar = true, setToolbarPreviousNextButtonEnable = false, setToolbarDoneBarButtonItemText = 'Done'
Expect result : The toolbar show 'Done' only
Real result : The toolbar show 'Done' only ✅
This is my expect result. This make module easy use in many case.
from react-native-keyboard-manager.
To show previous/next buttons you need to follow the Step 3 in README.
from react-native-keyboard-manager.
Yes, I have completed step 3 in README, but the setToolbarPreviousNextButtonEnable not working.
from react-native-keyboard-manager.
Is working on the Sample Project. Take a look.
from react-native-keyboard-manager.
The module working perfect. Thanks You .
from react-native-keyboard-manager.
How nice! you are welcome!
from react-native-keyboard-manager.
Related Issues (20)
- Cannot read property "setEnable(true)" of null HOT 11
- Showing Recent Issues error node_modules/react-native-keyboard-manager/index.js: Cannot find module 'babel-preset-react-native' HOT 6
- Pod install failed on m1 machine HOT 6
- large text input HOT 1
- Scrollview height gets larger and larger every time this library invokes itself HOT 1
- Autoscroll moves the input out of the screen
- [Question] KeyboardManager.resignFirstResponder() HOT 2
- Bug: keyboard extra animation HOT 4
- iOS build error: duplicate interface definition for class 'RCTBaseTextInputView' HOT 5
- iOS setKeyboardDistanceFromTextField is not working as expected HOT 1
- iOS Expo Demo error HOT 3
- Attempting to swipe back but not actually swiping back causes undesirable blank view while text input is focused HOT 10
- (Partially) Incompatible with `react-hook-form`? HOT 2
- Works incorrectly with two ScrollViews HOT 1
- IQKeyboardManagerSwift/IQKeyboardManagerSwift.modulemap' not found HOT 9
- Is this package working with Expo SDK46? HOT 1
- Signing for "IQKeyboardManagerSwift-IQKeyboardManagerSwift" requires a development team. Select a development team in the Signing & Capabilities editor. HOT 2
- Is it working with Expo? HOT 2
- TS Error `PreviousNextView has no export member` HOT 1
- Cannot read property 'then' of undefined. HOT 2
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-keyboard-manager.