Git Product home page Git Product logo

Comments (2)

Gri22ly avatar Gri22ly commented on July 18, 2024

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.

ShawSmall avatar ShawSmall commented on July 18, 2024

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)

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.