-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Component: TextInputRelated to the TextInput component.Related to the TextInput component.Needs: Author FeedbackNeeds: Environment InfoPlease run `react-native info` and edit your issue with that command's output.Please run `react-native info` and edit your issue with that command's output.Platform: AndroidAndroid applications.Android applications.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
I have example code
<TextInput style={[TEXT_STYLE.textInput, { ...Platform.select({ ios: { fontFamily: password ? type.base : type.italic, fontSize: placeholderSize }, android: { fontFamily: 'Lato-Regular', fontStyle: password ? 'normal' : 'italic', fontSize: placeholderSize } }) } ]} secureTextEntry={true} onChangeText={(text) => setPassword(text)} value={passwordInput} placeholder={placeholder} placeholderTextColor={COLORS.Default.darkGray} />
If password is empty, it's should be 'italic'. But if password is not empty, it's should be 'normal'.
iOS work but android doesn't work.
Component: TextInput
Platform: Android
RN: 0.0.61
Metadata
Metadata
Assignees
Labels
Component: TextInputRelated to the TextInput component.Related to the TextInput component.Needs: Author FeedbackNeeds: Environment InfoPlease run `react-native info` and edit your issue with that command's output.Please run `react-native info` and edit your issue with that command's output.Platform: AndroidAndroid applications.Android applications.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.