Videos
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
Hi, I'm having a hard time getting a clear answer to this in the expo docs.
I've migrated an expo project that used to use React Navigation into one that uses expo router. I used the quickstart to scaffold out the basic expo-router application.
npx create-expo-app -t with-router
Then I migrated over the old project, replacing the router.tsx file with the new app directory.
The problem I'm having is that when I run the command:
npx expo export:web
I get the error:
CommandError: expo export:web can only be used with Webpack. Use expo export for other bundlers.
So then I tried running just `npx expo export`, and it didn't work either.
Has anyone here figured this out yet?
Edit: I Figured it out.
npx expo export --platform web
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.
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.