R
Railway•7mo ago
Chioma

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!
25 Replies
Percy
Percy•7mo ago
Project ID: N/A
Chioma
Chioma•7mo ago
N/A Is it the same process using Caddyfile and nixpacks?
Brody
Brody•7mo ago
is it made with create react app?
Chioma
Chioma•7mo ago
yes. i used the command npx react-native init nameOfApp sorry for delay didn't get the notifcation
Brody
Brody•7mo 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
Chioma
Chioma•7mo ago
oh sorry i misunderstood. no it's not a react app..it's a react native app okay thanks, Brody!
Brody
Brody•7mo ago
by default react native is for mobile devices
Chioma
Chioma•7mo ago
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!
Brody
Brody•7mo ago
i ran npx react-native init nameOfApp and there where no web components, only android and ios could you share your repo?
Chioma
Chioma•7mo 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 sure one sec. my code is private
Brody
Brody•7mo ago
you can add me to the repo if you dont want to make it public?
Chioma
Chioma•7mo ago
GitHub
GitHub - ChiomaGrace/MyKidsLeague
Contribute to ChiomaGrace/MyKidsLeague development by creating an account on GitHub.
Brody
Brody•7mo ago
okay ill see what i can do
Chioma
Chioma•7mo ago
thanks!
Brody
Brody•7mo ago
do you use yarn or npm locally?
Solution
Brody
Brody•7mo ago
Chioma
Chioma•7mo ago
Thanks Brody!! I see the few changes you made and understand them I did a pr, but the app still failed for me
Brody
Brody•7mo ago
if you have any build or start commands set in the service settings remove them
Chioma
Chioma•7mo ago
i don't! i merged correctly right?
Brody
Brody•7mo ago
yeah, send me your build logs please still have the bookmarklet right?
Chioma
Chioma•7mo ago
They don't say much
Brody
Brody•7mo ago
they say exactly whats wrong, you haven't set a root directory
Chioma
Chioma•7mo ago
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
Brody
Brody•7mo ago
have fun with that!!
Want results from more Discord servers?
Add your server