Please post here if you have any questions and we ill check asap
hey they, these new videos. which require Xcode to run, can we please get more detail information or instructions on how to use them. been following and learning your stuff . but these new once are almost impossible to learn which more guidance. thanks
Hi! Yes, you must have Xcode installed on your machine in order to run the project in the iOS simulator. Once Xcode is installed, you can go to the project root directory and do yarn ios
. It will automatically create a build and open a default simulator. If you encountered an error after following these steps, please post it here so that we can assist you with the specific errors you encountered and we will be more than happy to help you out.
IF you are an idiot like me the first thing you need to do below in terminal:
git clone (the link in the video)
npm install â global yarn
yarn install (took 243s)
this should take you to the first step⌠I am waiting for yarn to finish up I will keep posting idiot tips as I go along
I am an idiot please remember this:
I have node.js installed on the C:
I am trying to install on D:
will install node and all the other shit on D:
this should work
installation - How to FULLY install Android Studio to a non-default (D:) drive - Stack Overflow
reinstall
android studio
vscode
nodejs
Move Program Files to Another Drive Windows 11, 10, 8, 7 | 3 Ways (ubackup.com)
another good source for moving over to the D:
Windows is very unchill for this
not sure what is wrong, but yarn iOS doesnât work for me , I have to run in from within Xcode and that give another error
looks like I need to learn Xcode first before I can use this repo
Hi @m33lucky I resolved this issue and updated both the master and boilerplate branches in the repo. Kindly pull from which branch you are working on and give us an update.
@m33lucky Since you wonât be able to install any apps from AppStore or Google play on simulators, I highly advice to run this on a physical device. Follow the instructions bellow:
- Connect a physical phone device. Open terminal/cmd and run
adb adb devices
and see if your device id is listed. - Install your preferred wallet on your device: (Metamask, Trust Wallet etcâŚ).
- IOS:
- Command
yarn ios
- For physical IOS Device: Open the moraliscreatereactnativedapp.xcworkspace from ios folder in Xcode. Run the App by choosing your connected physical device.
- for emulator Make sure you have Xcode or atleast Xcode command line tools installed
- Command
- Android:
- Make sure that your physical device is connected.
- Turn on âDeveloper Optionsâ by doing going to âSettingsâ , then tap âAbout deviceâ or âAbout phoneâ. Scroll down, then tap Build number seven times. Depending on your device and operating system, you may need to tap âSoftware informationâ, then tap âBuild numberâ seven times. Return to the previous screen to find Developer options near the bottom. Scroll down and enable USB debugging.
- Open terminal and go to root directory then do this command:
yarn android
. It will open a bundler and builds the app on your phone.
I also updated the Readme.md file for reference. Hope this helps.
Hi @gen I am going through the mobile tutorial as I am trying to get ready for the hackathon. I installed everything and I have my android emulator running. But when I run yarn android
, I get the following output:
yarn run v1.22.17
$ node_modules/.bin/ts-node scripts/android
Process on port 8545 killed
Started HTTP and WebSocket JSON-RPC server at http://0.0.0.0:8545/
Accounts
========
Account #0: 0x9374cb9e84c56acadb702f4ce62a087b4bacddc4 (1000 ETH)
Private Key: 0x6717acf4d7ec1befbe090dc2e6f1fb997ee322cf307ef0c3a28ec5378ef03e24
...
Account #9: 0x36c189392ba5b42cdf1bb9332a1c6b778e889e3b (1000 ETH)
Private Key: 0x288fce79cccf379299665751c61219c2a500d478aff45c57fb280a6a4dfb5942
But I donât see the bundler begin itâs processing, it just stays there. When I run the command it says I am using yarn run v1.22.17
and in the video it says yarn run v1.22.5
, although there is a difference I donât think that should break things.
Do you have any suggestions?
EDIT: I see where my issue lies
npx hardhat node --hostname 0.0.0.0 & react-native run-android &
This command, in scripts\android.ts
, assumes we are in a unix-like shell and sends the processes to background (&
) Since I am running this in Windows that wasnât the case. So I was able to get past this issue by running the App from Android Studio from the android/app
folder. Then, I manually ran react-native run-android
, which got me to the point where I could see the load screen. Shortly afterwards, I encountered the following error:
I am not a mobile developer, so I am not too sure whatâs going on. Any help would be much appreciated! Thanks again.
I would suggest following the steps of starting the android emulator through the simulator instead of using âyarn androidâ.
- Android:
- Command
yarn start
- Open
android
folder from source code in Android Studio. Click âRun appâ button to open either emulator or physical device. To see if devices are available, run commandadb devices
in your terminal.
- Command
Let me know if this approach works.
Wallet Connect authentication just sends me to wallet connect site even though I have metamask on my phone is this expected behavior?
ah ok many thanks! You guys have the best support by a country mile!
thanks for this I will try again
Hi I would like to ask if the react native chat app works with vs code or it has to be with Android Studio or Xcode?
Hi @otakuser if you are asking if you can modify the react native chat app code using vscode, then yes definitely. But you still need to have either Xcode(for iOS/ mac development) or android studio installed depending on which dev environment you wish to run it on your machine.
@MOUAD based on the first error it seem that your metro bundler is running on a different project. You can restart the bundler and run it again in. If this wasnât the case, try stoping the bundler and clean the build folder if you are running it in Xcode.