halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.98k stars 291 forks source link

onFocus not working #83

Closed brunoczo closed 5 years ago

brunoczo commented 6 years ago

I'm trying to use onfocus, but it does not work on the Jiro component. Is it possible to use onfocus? In the TextInput component the onfocus works perfectly.

halilb commented 5 years ago

The following code works perfect for me on iOS @brunoczo:

<Jiro
  label={"Dog's name"}
  borderColor={'#9b537a'}
  inputStyle={{ color: 'white' }}
  onFocus={() => console.log('onfocus')}
/>

Please post more information like react-native version, library version, platform, and the code block you are trying to run.