0

I know this question has been asked before, but by now there seem to be several different new ways to do this. I'm making a small app specifically for Android, but am using expo-react just because I already know TypeScript and some React so I want to keep it simple.

The issue I'm having is that their intent launcher has a bug that causes all integers in the extra arguments to be ignored, so it cannot be used for things like setting a timer, alarm, or adding calendar events. This makes the whole expo framework useless for my app since one of the main features was supposed to be the ability to launch arbitrary Android intents. And it doesn't seem like the bug will be fixed any time soon.

The fix seems pretty simple since it's just a matter of looping through the elements in the extra object and adding one by one to the bundle using the right type (or if nothing else, just convert all numbers to integers). I'm not super familiar with Java but writing this should be pretty straightforward. But the main issue is having my expo-react use this new Java or even Kotlin code. There seems to be several ways to run native code on expo.

I tried following the instructions on making a development build, but it's not clear to me what a development build actually is. I did manage to produce an android folder, but I'm not sure how that'd help since I still don't have access to the IntentLauncher code or a way to add any custom code that I'll be able to run from the react side.

I also found that we can create our own modules, which I guess we can then import into our project? But unfortunately create-expo-module is also bugged and can't get it to create the barebones project.

So I wonder if anyone has managed to run custom Java or Kotlin code from an expo-react project, and which of all these paths would be the quickest way to have a working intent launcher.

Juan
  • 15,274
  • 23
  • 105
  • 187

0 Answers0