react-native-numeric-input icon indicating copy to clipboard operation
react-native-numeric-input copied to clipboard

[BUG] - Icons not showing on Android 9

Open richardfelkl opened this issue 5 years ago • 14 comments

Describe the bug Icons for +/- are not showing for Android 9. Tested on emulator only. In iOS this problem doesn't happen.

To Reproduce Steps to reproduce the behavior:

  1. Import the package
  2. use the <NumericInput onChange={value => console.log(value)} />
  3. Android simulator is showing this: Screenshot_1574761278

Expected behavior It should display icons properly.

Enviorment (please complete the following information):

  • Version: v1.8.3
  • React Native version: 0.61.2
  • Device: Android 9 Emulator
  • Device OS: Android 9 Emulator

richardfelkl avatar Nov 26 '19 09:11 richardfelkl

same issue

rajisundaram-s avatar Jan 04 '20 11:01 rajisundaram-s

Someone solved this?

brunomiquelotto avatar May 25 '20 19:05 brunomiquelotto

you need to install react native vector icons.

takeruadelbert avatar Aug 10 '20 08:08 takeruadelbert

you need to install react native vector icons.

I did. But the issue still persists. in my case, the plus icon is working but the minus is not. I tried to change them but when I enter any other icon names, it shows me some random icon. I think the issue is for build target SDK API 29 or more. I tested the app on Android 8.1 device.

behnamben avatar Sep 04 '20 02:09 behnamben

I had installed vector icons already but I was not able to show icons properly , however, I saw I was using only fontawesome and materialcommunity icons , I added more into app/build.gradle file as iconFontNames: [ 'Octicons.ttf','Ionicons.ttf','Feather.ttf','MaterialCommunityIcons.ttf','FontAwesome.ttf','MaterialIcons.ttf', 'EvilIcons.ttf', 'SimpleLineIcons.ttf' ] // Name of the font files you want to copy

and its working fine now

amitbravo avatar Sep 29 '20 09:09 amitbravo

Should close this issue.

sparcbr avatar Dec 26 '20 16:12 sparcbr

Should close this issue.

Is it solved?

behnamben avatar Dec 26 '20 17:12 behnamben

I'm also experiencing the same issue

Pil0tJones avatar May 17 '21 20:05 Pil0tJones

Uses Ionicons internally, so just specify Ionicons.ttf in android/app/build.gradle

lb90 avatar Jul 05 '21 12:07 lb90

Uses Ionicons internally, so just specify Ionicons.ttf in android/app/build.gradle

@lb90 I tried doing so by doing this in android/app/build.gradle:

project.ext.vectoricons = [
    iconFontNames: [ 'IonIcons.ttf'] 
]
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

However, the icons are still not showing up, what am I missing?

Pil0tJones avatar Jul 05 '21 20:07 Pil0tJones

Dunno if it really matters, but try Ionicons.ttf (only the first I uppercase)

lb90 avatar Jul 05 '21 20:07 lb90

And as a last resort, if nothing works, try resetting the Metro bundler cache:

npx react-native start --reset-cache

See https://reactnavigation.org/docs/6.x/troubleshooting/#stale-cache-of-metro-bundler

lb90 avatar Jul 05 '21 20:07 lb90

I had installed vector icons already but I was not able to show icons properly , however, I saw I was using only fontawesome and materialcommunity icons , I added more into app/build.gradle file as iconFontNames: [ 'Octicons.ttf','Ionicons.ttf','Feather.ttf','MaterialCommunityIcons.ttf','FontAwesome.ttf','MaterialIcons.ttf', 'EvilIcons.ttf', 'SimpleLineIcons.ttf' ] // Name of the font files you want to copy

and its working fine now

Thanks It's also working for me.

NitinPandey321 avatar Jan 28 '23 03:01 NitinPandey321

Warning: Failed prop type: Invalid prop name of value md-add supplied to Icon, expected one of ["accessibility","accessibility-outline","accessibility-sharp","add","add-circle","add-circle-outline","add-circle-sharp

I'm getting this error .. In this package icon name has been given wrong.. In ionicons, plus icon name is add-outline, In this package it is md-add... how to solve it?

Tazmeenilsa avatar Oct 26 '23 06:10 Tazmeenilsa