Extend (Update) third-party old type declaration interface with new one

If you need to overwrite an existing property declaration to change the type, you’ll need to fork the @types/expo types. The easiest way is probably to copy the index.d.ts file into your typings directory and uninstall the original @types/expo package. Or you can use a tool such as Braid (disclosure: I am a Braid contributor) … Read more

How to add network_security_config.xml to manifest in expo app without ejecting

I was facing a similar problem (needed to connect to a local API with self-signed certificate) and after a ridiculous amount of research and experimentation I was finally able to find a solution. You will need to create a config plugin, which requires Expo SDK version 41+. Note that you will lose the ability to … Read more

‘expo’ is not recognized as an internal or external command

Probably the only thing missing is to add the expo executable to your path. For Windows 10, you can simply add the npm folder to your path environment variable. Hit Windows key and search for Environment variables. Inside the Path variable under System variables, add a new entry (entries are separated by semicolons) with this … Read more

Hide header in stack navigator React navigation

UPDATE as of version 5 As of version 5 it is the option headerShown in screenOptions Example of usage: <Stack.Navigator screenOptions={{ headerShown: false }} > <Stack.Screen name=”route-name” component={ScreenComponent} /> </Stack.Navigator> If you want only to hide the header on 1 screen you can do this by setting the screenOptions on the screen component see below … Read more

What is the difference between Expo and React Native?

When you write code in Expo you are writing React Native code. Expo has two main pieces: Expo CLI (expo-cli): a developer tool for creating projects, viewing logs, opening on your device, publishing, etc. Expo client: an app on your phone that lets you open your projects while you’re working on them, without needing to … Read more