I wrote a quite detailed article on how React Native and Expo relate to each other, and if it is worth using React Native without Expo.
TLDR; it does not.
You are almost always better off using Expo, even the React Native team recommends that.
For the longer, comprehensive answer, read my blog post.
Answer from f4z3k4s on Stack OverflowVideos
I wrote a quite detailed article on how React Native and Expo relate to each other, and if it is worth using React Native without Expo.
TLDR; it does not.
You are almost always better off using Expo, even the React Native team recommends that.
For the longer, comprehensive answer, read my blog post.
In order to run the application you developed with React Native as both a website and a mobile application, using EXPO, the framework of React Native, would be the right decision for your goal.
Terminal Installation:
Use the 'npx create-expo-app' command to create a new Expo project.
Run 'npx create-expo-app --template' to see a list of available templates.
Optionally, you can select a "Blank" or "Navigation" project from the templates, and choose "TypeScript" as the programming language.
Run:
The 'yarn' command installs the necessary modules in the project.
Start the Expo server with the 'expo start' command.
Select the platform to run on by using the corresponding button: 'i' for iOS, 'a' for Android, 'w' for Web.
For detailed installation and review, refer to the Expo documentation.
Project Output Transactions:
Creating a Build File:
The build file is created with the 'expo build:web' command. The build files are located in the web-build folder within the module directory.
While performing build or run operations in Expo Web projects, you may encounter the error: 'Error: error:0308010C:digital envelope routines::unsupported'.
Solution Processes:
Run the command 'export NODE_OPTIONS=--openssl-legacy-provider' before performing build or run operations.