swushi / react-native-input-outline

MIT License
123 stars 15 forks source link

On focus doesn't fire any events and the placeholder text not Vertical in center #32

Open JoyCood opened 1 year ago

JoyCood commented 1 year ago
          > Hello, thanks for the reply, but I ended up using another library for my outlineInput. I tried your library without any Controller and still wasn't getting any response on the onFocus event. Maybe it is my react-native and reanimate version.

i have the same issue. @swushi

"react": "18.1.0",
"react-native": "0.70.6",
"react-native-input-outline": "^1.5.2",
"react-native-reanimated": "^2.13.0",
import { InputOutline } from 'react-native-input-outline';

const inputRef = useRef<InputOutline>(null);

<InputOutline
    placeholder={t`Enter your emailg`}
    onFocus={() => console.log("hhhhhhhhh")}
    fontSize={15}
    paddingVertical={0}
    style={styles.input}                    
/>

const styles = StyleSheet.create({
  input: {
      width: '100%',
      marginTop: 20,
      fontSize: 20,
  }
})

Originally posted by @JoyCood in https://github.com/swushi/react-native-input-outline/issues/20#issuecomment-1416744158