DEPLOYMENT QUESTION: React Native App
chiomagrace
HOBBYOP

2 years ago

Hi ! I was wondering if I wanted to deploy the web version of a react-native-app, is it the same process as deploying a react app? Thanks in advance!

0 Replies

chiomagrace
HOBBYOP

2 years ago

N/A


chiomagrace
HOBBYOP

2 years ago

Is it the same process using Caddyfile and nixpacks?


brody
EMPLOYEE

2 years ago

is it made with create react app?


chiomagrace
HOBBYOP

2 years ago

yes. i used the command npx react-native init nameOfApp


chiomagrace
HOBBYOP

2 years ago

sorry for delay didn't get the notifcation


brody
EMPLOYEE

2 years ago

that's not create react app, I have no experience with that so I'll have to do some research and get back to you


chiomagrace
HOBBYOP

2 years ago

oh sorry i misunderstood. no it's not a react app..it's a react native app


chiomagrace
HOBBYOP

2 years ago

okay thanks, Brody!


brody
EMPLOYEE

2 years ago

by default react native is for mobile devices


chiomagrace
HOBBYOP

2 years ago

yes


chiomagrace
HOBBYOP

2 years ago

my question was


chiomagrace
HOBBYOP

2 years ago

I was wondering if I wanted to deploy the **web version **of a react-native-app, is it the same process as deploying a react app? Thanks in advance!


brody
EMPLOYEE

2 years ago

i ran npx react-native init nameOfApp and there where no web components, only android and ios


brody
EMPLOYEE

2 years ago

could you share your repo?


chiomagrace
HOBBYOP

2 years ago

correct. you have to install react native web and make it compatible to web by configuring a webpack and creating its own index and js file for web


chiomagrace
HOBBYOP

2 years ago

sure one sec. my code is private


brody
EMPLOYEE

2 years ago

you can add me to the repo if you dont want to make it public?


chiomagrace
HOBBYOP

2 years ago


brody
EMPLOYEE

2 years ago

okay ill see what i can do


chiomagrace
HOBBYOP

2 years ago

thanks!


brody
EMPLOYEE

2 years ago

do you use yarn or npm locally?


brody
EMPLOYEE

2 years ago

here's a pr
and here the app is running on railway


chiomagrace
HOBBYOP

2 years ago

Thanks Brody!!


chiomagrace
HOBBYOP

2 years ago

I see the few changes you made and understand them


chiomagrace
HOBBYOP

2 years ago

I did a pr, but the app still failed for me


brody
EMPLOYEE

2 years ago

if you have any build or start commands set in the service settings remove them


chiomagrace
HOBBYOP

2 years ago

i don't! i merged correctly right?



brody
EMPLOYEE

2 years ago

yeah, send me your build logs please


brody
EMPLOYEE

2 years ago

still have the bookmarklet right?


chiomagrace
HOBBYOP

2 years ago

They don't say much

1222772717472976956


brody
EMPLOYEE

2 years ago

they say exactly whats wrong, you haven't set a root directory


chiomagrace
HOBBYOP

2 years ago

oops🤭 . i promise i did, but i didn't click the "check" to save it haha


chiomagrace
HOBBYOP

2 years ago

that did it! thanks brody!!


chiomagrace
HOBBYOP

2 years ago

my brother in law is a commisoner of my nephews/nieces flag football league so i am trying to make an app for him to use to handle the league


chiomagrace
HOBBYOP

2 years ago

be a fun learning project


brody
EMPLOYEE

2 years ago

have fun with that!!


Loading...