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

Unable to display the icon inside text input fields #75

Closed MrChinmaya closed 5 years ago

MrChinmaya commented 6 years ago

I had imported vector icons lib but also unable to display the icons.

import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome'; import Icon from 'react-native-vector-icons/FontAwesome'; import { Sae } from 'react-native-textinput-effects';

<Sae label={'Email Address'} iconClass={FontAwesomeIcon} iconName={'pencil'} iconColor={'white'} // TextInput props autoCapitalize={'none'} autoCorrect={false} />

halilb commented 5 years ago

Could you check if you can render icons directly in your screen @MrChinmaya? The code block you posted works just fine on the example project.