React Native implementation
It would be good to implement templates since it is another alternative to flutter. It would also be good to implement .idx/dev.nix to be automatically loaded when cloning a git repository
We have an experimental version of this in IDX now. You access it via the Mobile category or going directly to here: https://idx.google.com/new/react-native
-
Nikolaus-Lukas Thomas commented
I was waiting for this! Thanks.
I've found a bug: when creating a new project, the web preview inside idx does not compile. The web version seems to be working in the browser by opening the link.2024-08-27T10:56:07Z [web] <--- JS stacktrace --->
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: ----- Native stack trace -----
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 1: 0xbdd478 node::Abort() [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 2: 0xaa33a9 [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 3: 0xdfe2c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 4: 0xdfe694 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 5: 0x1019d37 [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 6: 0x1019dbb [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 7: 0x102fb7d v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*) [node]
2024-08-27T10:56:07Z [web] 8: 0x1030670 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 9: 0x100b21c v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
2024-08-27T10:56:07Z [web] 10: 0x100c884 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
2024-08-27T10:56:07Z [web] 11: 0xfeba34 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
2024-08-27T10:56:07Z [web] 12: 0xfde433 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString(int, v8::internal::AllocationType) [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 13: 0x1489e25 v8::internal::ReplacementStringBuilder::ToString() [node]
2024-08-27T10:56:07Z [web] 14: 0x144a38d [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:07Z [web] Error: 15: 0x144ac9e v8::internal::Runtime_RegExpReplaceRT(int, unsigned long*, v8::internal::Isolate*) [node]
2024-08-27T10:56:07Z [web] 16: 0x184eef6 [node]
2024-08-27T10:56:07Z [web]
2024-08-27T10:56:08Z [web] <IDX> ✘ Preview shutdown unexpectedly -
Govinda Timsina commented
Expo cli works fine here, we need react-native CLI support as well. Also, the emulator for it.
-
Kizi Gamer commented
I tried it but getting this error
Starting Metro Bundler
Tunnel connected.
Tunnel ready.
Failed to resolve the Android SDK path. Default install location not found: /home/user/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Failed to resolve the Android SDK path. Default install location not found: /home/user/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Error: spawn adb ENOENT
Error: spawn adb ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at processTicksAndRejections (node:internal/process/task_queues:82:21) -
Hamid Raza commented
getting this error when running the command
npm run androidStarting project at /home/user/cake
Starting Metro Bundler
Failed to resolve the Android SDK path. Default install location not found: /home/user/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Failed to resolve the Android SDK path. Default install location not found: /home/user/Android/sdk. Use ANDROID_HOME to set the Android SDK location.
Error: spawn adb ENOENT
Error: spawn adb ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at processTicksAndRejections (node:internal/process/task_queues:82:21) -
Kuldeep Singh commented
yes having react native is sure things along with flutter in the idx
-
Juli Suhaidi commented
i agree
-
D3NMOH commented
Android emu + react native / expo
This would be great for 128gb MacBook owners and would allow developers to develop without mac/win/linux pc, for example on android tablets.
Would be a real lifesaver for me -
Juan Corica commented
React native support is very much needed
-
A U commented
React native support is very much needed
-
smida pop commented
can you add an expo template pls with android and ios previews
-
Kian Popat commented
Yarn support would be good too
-
Raviteja Thipparthi commented
Also add support for both simulators like Android and IOS
-
Kizi Gamer commented
Expo for react native support pls
-
Moch Falaq “Fall” Murdianto commented
expo please
-
Chaedir Dwiantara commented
i understand that react native is the competitor of google which is have flutter, but i think the popularity of the idx will be grow with adding react native.
-
Ridwan Gboyega Abdulkareem commented
For all the reasons mentioned already, and many others, please accelerate the support for react native with expo. I believe that would bring a ton of users on here
-
Andrea Belli commented
Adding support for react native with expo would be a fantastic thing, it would also allow you via github actions using eas to create and release android - ios builds without a mac.
-
Rohit Sharma commented
We need react native too run in idx thats help developer plz implement
-
Howoo Jang commented
expo please
-
Henrique Cícero commented
We already have support for React and Next.js and the android emulator in Flutter, it would be really nice to have support for React Native as well as a complement.