react native - How do i create web only application using create-expo-app? - Stack Overflow
Expo development build with web support
React Native with Expo for Web and Mobile Devices - Stack Overflow
Expo React Native Web Deployment: Use dist as the Publish Directory and npx expo export --platform web as the Build Command
Videos
Long story short, my client and I used both used the word "app" very differently. He thought I was building a web app, I thought he wanted me to make a mobile app. Now I have a fully built React Native Expo app and he wants a website. Around how much time will it take to convert this to a fully-functional website? From what I could find on the Internet, most of the logic can remain the same and only my visual designs (which are fairly simplistic) have to change. If that's true, how do I go about it? Any help is extremely appreciated as I'm 16 and potentially in some deep shit.
I am curious if expo development build supports web also ?
I am new to expo environment and I don’t have much info about what the expo go builds and development builds. I want to build a project in which all the three platforms are supported and i also can install any 3rd party package outside of expo sdk, also i want to get hands on native modules as well
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.
I've spent the last 2 days trying to get my Expo React Native project to publish correctly on web hosting platforms like Netlify, Vercel, Railway and Render. After a lot of trial and error, here’s what I found:
1- Publish Directory should be set to dist. Using web-build as the publish directory no longer works, as Expo doesn't output to that folder anymore.
2- Build Command should be npx expo export --platform web. Don't use npx expo export:web or expo build:web, as they’re no longer valid for the latest Expo versions.
The frustrating part is that there’s almost no documentation online mentioning these changes, and even when an error occurs during the build, the terminal suggests the outdated commands (npx expo export:web and web-build) – which are incorrect!
I hope this saves someone else from spending days trying to get this to work. If anyone has insights on why this change hasn’t been documented or if there’s something I missed, please share!
One of my clients is looking for a cross platform app and I suggested react native but later on I got to know that he expected web platform as well in the same codebase.
I researched a bit on expo and it seems it has an option to build app on web as well. Just curious how mature it is and should I move forward with it given major component I’m going to use is google maps.