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