DEPLOYMENT QUESTION: React Native App
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!
Solution:Jump to solution
here's a pr https://github.com/ChiomaGrace/MyKidsLeague/pull/1
and here the app is running on railway https://test-production-9ec7.up.railway.app/...
25 Replies
Project ID:
N/A
N/A
Is it the same process using Caddyfile and nixpacks?
is it made with create react app?
yes. i used the command
npx react-native init nameOfApp
sorry for delay didn't get the notifcationthat's not create react app, I have no experience with that so I'll have to do some research and get back to you
oh sorry i misunderstood. no it's not a react app..it's a react native app
okay thanks, Brody!
by default react native is for mobile devices
yes
my question was
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!
i ran
npx react-native init nameOfApp
and there where no web components, only android and ios
could you share your repo?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
sure one sec. my code is private
you can add me to the repo if you dont want to make it public?
GitHub
GitHub - ChiomaGrace/MyKidsLeague
Contribute to ChiomaGrace/MyKidsLeague development by creating an account on GitHub.
okay ill see what i can do
thanks!
do you use yarn or npm locally?
Solution
here's a pr https://github.com/ChiomaGrace/MyKidsLeague/pull/1
and here the app is running on railway https://test-production-9ec7.up.railway.app/
Thanks Brody!!
I see the few changes you made and understand them
I did a pr, but the app still failed for me
if you have any build or start commands set in the service settings remove them
i don't! i merged correctly right?
yeah, send me your build logs please
still have the bookmarklet right?
They don't say much
they say exactly whats wrong, you haven't set a root directory
oops🤠. i promise i did, but i didn't click the "check" to save it haha
that did it! thanks brody!!
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
be a fun learning project
have fun with that!!