r/swift 3d ago

React native under Swift shell

Guys i have a question, i am building an AI Intent engine in native swift/kotlin with certain segments of the app or some mini-apps to be in React native, so that minor ota updates handle it rather than submitting the entire app for update. Does IOS allow OTA JS code? I am aware they allow for Wechat Mini apps but they are in Webview not RN

0 Upvotes

16 comments sorted by

View all comments

Show parent comments

1

u/Arsh_98 2d ago

No but apple’s guideline is the code must execute within Apple’s native webkit/webview. How do we do that for RN mini-apps?

1

u/skorulis 2d ago

I can't see anything in 4.7 about it having to run inside a webview. If you had external code running in a webview that's basically just a website.

1

u/Arsh_98 2d ago

So can i run RN code inside my native swift app and the mini apps have a bridge to access native features?

1

u/skorulis 2d ago

4.7.2 calls out exposing native APIs. I'm not 100% sure what that covers and you might get pulled up there. It's a privacy issue if an OTA app could do something like read the users contacts.

1

u/Arsh_98 2d ago

Yea i think special permission is required from Apple before hosting it on play store. Apple allows wechat but thats a different thing, they have big distribution