Skip to content

Nothing happens onPress #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
henriflouquet opened this issue Apr 17, 2020 · 1 comment
Open

Nothing happens onPress #8

henriflouquet opened this issue Apr 17, 2020 · 1 comment

Comments

@henriflouquet
Copy link

Hello,

First of all thank you for this lib.
I did not manage to make it work. When I press on a key, nothing happens :

  • the keyboardButtonPressStyle is not executed
  • handleInput function is not executed

Here is my relevant code :

this.myTextInput = ref} value={this.state.inputValue} />

<Keyboard
textInput={this.myTextInput}
onInput={this.handleInput}
inputType="textPassword"
keyboardContainerStyle={{backgroundColor: "black", borderWidth: 0}}
keyboardButtonPressStyle={{backgroundColor: "blue"}}
/>

...

handleInput = (text) => {
console.log("hi")
console.log(text)
this.setState({inputValue: text})
}

I use Expo 35 and issue both on ios and android

What did I miss ?

Thank you,

@ggunti
Copy link

ggunti commented May 19, 2020

Same thing at me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants