I'm working on an expo project. We have to use expo install
when adding other expo libraries (e.g. expo-permissions
, expo-av
). But we can also use expo install
for non-expo libraries (e.g. react-native-root-toast
). So, is it safe to use expo install
for all libraries that we install?
I'm working on an expo project. We have to use expo install
when adding other expo libraries (e.g. expo-permissions
, expo-av
). But we can also use expo install
for non-expo libraries (e.g. react-native-root-toast
). So, is it safe to use expo install
for all libraries that we install?
1 Answer
Reset to default 15Yes, there is nothing wrong with using it to install all of your dependencies. All expo install does is check for patibilities with your current expo version.
From expo docs:
The expo install mand will pick a version that is patible with your project and then use your JavaScript package manager (such as npm) to install it.
So if you use yarn instead of npm for example, expo will use yarn instead.