Comments (2)
Hi @swaroopa94 !
Thank you for using this module and your feedback.
The issue is with the Android custom keyboard. Because React Native's will invoke API to display the default keyboard when the TextInput component is focused. In my code https://github.com/lyxia/react-native-yusha-customKeyboard/blob/master/android/src/main/java/com/facebook/react/uimanager/RNCustomKeyboardModule.java#L75 , it will listen to the focus event and hide the default keyboard. Thus there might be some time lag between the the default keyboard hiding and the custom one popping out.
Currently I don't have any better solutions to resolve this issue. If you have any ideas, please tell me and pull requests are always welcome and appreciated :) (Reply by @lyxia )
from react-native-yusha-customkeyboard.
componentDidMount() {
this.installTime = setTimeout(()=>{
install(findNodeHandle(this.input), this.props.customKeyboardType);
if(Platform.OS === 'android') {
this.showSub = addKeyBoardShowListener(this._showKeyboard);
this.hideSub = addKeyBoardHideListener(this._hideKeyboard);
}
AppState.addEventListener('change', this._handleAppStateChange);
this.input && this.input.focus();
}, 300)
}
from react-native-yusha-customkeyboard.
Related Issues (20)
- ios打包时出错编译错误 HOT 5
- 请问我想在原生键盘和自定义键盘之间切换,该怎么注册原生键盘呢呢? HOT 1
- 调用时能随机化分布吗 HOT 2
- maxLength属性不起作用 HOT 5
- android中键盘上方显示黑框
- null is not an object (evaluating 'CustomKeyboard.install')
- keyboardShouldPersistTaps="handled"
- 点击键盘闪动 HOT 1
- ios点击完成无法收起键盘
- 微信h5页面可以用吗?
- 嵌套在Modal里将无法使用
- E/ReactNativeJS: RangeError: Maximum call stack size exceeded.
- 有适配低版本的吗?0.44.3 HOT 3
- Android如何解决返回键只消失键盘呢? HOT 1
- 'RCTText/RCTTextInput.h' file not found HOT 4
- iOS RCTTextField HOT 1
- 支持中文输入法吗? HOT 1
- 启动时报错 Tried to register two views with the same name RNSVGPath HOT 3
- 同时使用多个input框时,无法收起键盘 HOT 6
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-yusha-customkeyboard.