Follow the setup guide on https://reactnative.dev/docs/environment-setup?guide=native&os=windows.
You can also install OpenJDK
via winget
instead of chocolatey
.
-
Install using
npm install --legacy-peer-deps
and do not useyarn
. Yarn/Babel has some insane bug. Don't forget to donpm run gen-proto
too after you've installed the packages. -
NativeBase expects UNIX-like environment for compiling assets. Make sure that
npm
usesGit Bash
as the shell instead ofWindows Command Prompt
:npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
. Your path toGit Bash
may be different, double-check the location.Alternative solution:
Apply our NativeBase patch in
package.json
:"native-base": "git+https://github.com/hsjoberg/NativeBase.git#e6ec53fd1f3242f4e3d6fdf619750a96e39537de",
-
Download
protoc.exe
manually from https://github.com/protocolbuffers/protobuf/releases and link it viapath = ...
ingradle.build
instead ofartifact
blixt-wallet/android/app/build.gradle
Lines 233 to 235 in 7e21d89
The pre-compiled protoc binary from
com.google.protobuf:protobuf-gradle-plugin
is dependent onlibstdc++-6.dll
for whatever reason, making execution fail (unless you have it. I couldn't get it working). -
Maybe needs attention: weird
react-native-reanimated
error software-mansion/react-native-reanimated#5625 -
Might need to do
npm start -- --port 8082
if something is hogging the default Metro port8081
.Ctrl+M
inside Blixt in the emulator. Change metro server to<LAN IP>:8082
. -
Happy Blixting!