When using react-native-vector-icons on web, you have to use react-native-vector-icons/dist, per the README.
However, on a native app this results in an error that "react-native-vector-icons/dist" is not in the hashmap and couldn't be resolved.
What is the best way to conditionally import and use the dist/ folder only on the web? I'm using Expo, so I can use Expo (Platform.OS === 'web') for the condition, but I'm not sure if it makes sense to put an async operation into the render method of the view?
Something like this maybe - https://medium.com/@magbicaleman/intro-to-dynamic-import-in-create-react-app-6305bb397c46