Content pfp
Content
@
0 reply
0 recast
2 reactions

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
Since React Native is truly native and cross platform, how are platform specific APIs and functionality handled? Does React Native provide ways to integrate with platform specific APIs without having to write native code? Or are there APIs that you can only work with effectively in native code (Swift, Kotlin)?
4 replies
0 recast
7 reactions

Timi pfp
Timi
@timigod.eth
It has built in support for a lot of platform APIs across both OSes - such that you can just write JavaScript without having to think about the underlying native code. However, for APIs not supported above, you can write Kotlin/Swift & expose them to be called in your JS code.
0 reply
0 recast
1 reaction

SonOfMosiah pfp
SonOfMosiah
@sonofmosiah.eth
I’ve mostly seen swift/kotlin mixed in with react native for platform specifics
0 reply
0 recast
0 reaction

Faruk Aminu pfp
Faruk Aminu
@faruoq01
It provides native modules for both platforms, there you can write platform specific native code and export to JavaScript.
0 reply
0 recast
0 reaction