Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Support focus() event like a TextInput component #25

Closed
bnbon opened this issue Oct 28, 2018 · 4 comments
Closed

Support focus() event like a TextInput component #25

bnbon opened this issue Oct 28, 2018 · 4 comments

Comments

@bnbon
Copy link

bnbon commented Oct 28, 2018

When creating references to allow the next keyboard to tab through TextInputs, the focus() call on the Tag field throws an exception. It would be great if support could be added.

The plugin I (obviously) think is great, it should probably become something part of Expo/React-Native as its far better than the others - so excuse my bug finding.

@peterp
Copy link
Owner

peterp commented Oct 30, 2018

Ah, that's nice to hear. Thanks - and this is a great feature request. I'll add it.

@peterp
Copy link
Owner

peterp commented Oct 31, 2018

Hey @bonbonio, I've just added textInputProps which will be forwarded to the TextInput component, do you think that'll work for you?

<Tags
    textInputProps={{
      placeholder: "Any type of animal"
    }}
  />

@bnbon
Copy link
Author

bnbon commented Nov 1, 2018

@peterp Works a charm! Suggested an addition to the readme and created a Pull Request

@peterp
Copy link
Owner

peterp commented Nov 12, 2018

I'm going to close this now :)

@peterp peterp closed this as completed Nov 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants