Skip to content

Commit 85ed032

Browse files
authored
fix(react-native): change arch android system from x86-64 to x86_65 (#12)
* fix(react-native): change arch android system from x86-64 to x86_65 * test(react-native): run create-emulator
1 parent c9899c2 commit 85ed032

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

react-native/flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
createEmulator = pkgs:
3535
let
3636
inherit (pkgs.stdenv) isAarch64;
37-
arch = if isAarch64 then "arm64-v8a" else "x86-64";
38-
cpuArch = if isAarch64 then "arm64" else "x86-64";
37+
arch = if isAarch64 then "arm64-v8a" else "x86_64";
38+
cpuArch = if isAarch64 then "arm64" else "x86_64";
3939
in
4040
rec
4141
{

scripts.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
for dir in `ls -d */`; do
1717
(
1818
${nix}/bin/nix develop $dir # Make sure this work after update
19+
[[ "$dir" == "react-native/" ]] && ${nix}/bin/nix develop $dir -c create-emulator
1920
sleep 0.2
2021
)
2122
done

0 commit comments

Comments
 (0)