I\'m running into a peculiar error using React Native. Inside my button.js
I am doing
import Icon from \"react-native-vector-icons/MaterialIcons\";
If you have completed all the above steps and still get the same error, you need to Clean your iOS project from Xcode then Build it. This will completely reset the project and ensure that the .ttf file is included.
Run your project from within Xcode and it should now work.
You may still find your project still doesn't work using react-native run-ios
. If this is the case, open Finder and navigate to the ios folder in your project and delete the entire build folder. Then close your simulator and package manager terminal, and run react-native run-ios
again. This will take a couple of minutes as it's rebuilding everything, but then (hopefully) your app will run correctly.