Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leading/trailing icon displaying as emoji rather than vector icon #4316

Open
iannngit opened this issue Feb 16, 2024 · 1 comment
Open

Leading/trailing icon displaying as emoji rather than vector icon #4316

iannngit opened this issue Feb 16, 2024 · 1 comment
Labels

Comments

@iannngit
Copy link

iannngit commented Feb 16, 2024

Current behaviour

TextInput icon has set close-circle but it becomes an emoji.

Expected behaviour

Show a close circle icon in solid color.

How to reproduce?

My project became like this after upgrading to Expo 50. So I think it's relating to dependency versions.

A rough code

import {
  HelperText,
  TextInput
} from 'react-native-paper';

<TextInput
...
    right={<TextInput.Icon
        icon="close-circle"
    />}
...
/>

Preview

Screenshot 2024-02-16 155904

What have you tried so far?

I've tried to change the right attribute of TextInput to a @expo/vector-icons MaterialCommunityIcon but it doesn't display.

<TextInput
...
    right={<MaterialCommunityIcons name="close-circle" />}
...
/>

Your Environment

software version
android emulator, Android 33
react-native 0.73.4
react-native-paper 5.12.3
node 18
npm or yarn 9.5.1
expo sdk 50.0.6
@iannngit iannngit added the bug label Feb 16, 2024
@iannngit
Copy link
Author

Tested with Android phone the close-circle icon displays as a [X] like a font is missing.
I then tested with and in right property but they couldn't show up. So I guess it's something not right with the right property?

@iannngit iannngit changed the title TextInput icon becomes emoji Leading/trailing icon displaying as emoji rather than vector icon Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant