oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.31k stars 2.12k forks source link

Icon doesn't shows up after closing React-Native App and reopen #1458

Open SurpriseMF3000 opened 1 year ago

SurpriseMF3000 commented 1 year ago

Hello, im having issues with Ionicon´s. If im compiling and opening my App via yarn android, everything works fine and the Icons show up. But if im now unplugging the Phone from the Mac and open the App which contains Ionicon´s, the Icons don't show up!

Code: import { Ionicons } from 'react-native-vector-icons/Ionicons';


                tabBarIcon:({focused, color, size}) => {

                    let iconName;
                    let rn = route.name;

                    if (rn === Icon1) {
                    iconName = focused ? 'home' : 'home-outline';

                    } else if (rn === Icon2) {
                    iconName = focused ? 'list' : 'list-outline';

                    return <Ionicons name={iconName} size={size} color={color} />;

                },
            })} 

Thanks for Help!

Adrielripoll commented 1 year ago

Same here, on android

SunnyAureliusRichard commented 1 year ago

Same problem here

Note: I've tried adding the icons manually and the issue persists when the app is reran with the device unplugged.

The same issue occurs with https://www.npmjs.com/package/@expo/vector-icons

chrisunl commented 7 months ago

Same here, Android too