Package-level declarations

Types

Link copied to clipboard
interface EventEmitter
Link copied to clipboard
class EventEmitterAndroid(reactContext: ReactApplicationContext, supportedEvents: List<String>) : EventEmitter
Link copied to clipboard
class EventEmitterIOS(getCallableJSModule: () -> RCTCallableJSModules?, supportedEvents: List<String>) : EventEmitter
Link copied to clipboard
typealias ExceptionInterceptor = (throwable: Throwable) -> Map<String, Any?>
Link copied to clipboard
Link copied to clipboard
typealias IOSResolvePromise<T> = (T) -> Unit
Link copied to clipboard
data class PromiseIOS(val resolve: IOSResolvePromise<Any?>, val reject: IOSRejectPromise)
Link copied to clipboard
class RCTBridgeMethodWrapper(jsName: String, action: (arguments: List<*>, promise: PromiseIOS) -> Unit) : NSObject, RCTBridgeMethodProtocol
Link copied to clipboard

A subclass of this interface serves as the communication between an annotated Compose view and its respective RCTViewManager subclass (which is generated into Objective-C code).

Link copied to clipboard

A subclass of this interface serves as a factory for creating instances of the ReactNativeIOSViewWrapper. Such a factory is needed so the factory is initialized from Kotlin injecting all the necessary dependencies and then the factory can be used in Objective-C to create instances of the corresponding ReactNativeIOSViewWrapper.

Link copied to clipboard
abstract class ReactNativeModuleBase(reactContext: ReactApplicationContext, supportedEvents: List<String>) : ReactContextBaseJavaModule
Link copied to clipboard
actual interface ReactNativeModuleProvider
expect interface ReactNativeModuleProvider
actual interface ReactNativeModuleProvider
actual interface ReactNativeModuleProvider
actual interface ReactNativeModuleProvider
Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun List<ReactNativeModuleProvider>.getModules(reactApplicationContext: ReactApplicationContext, lifecycleScope: CoroutineScope): List<ReactNativeModuleBase>
fun List<ReactNativeModuleProvider>.getModules(lifecycleScope: CoroutineScope): List<RCTBridgeModuleProtocol>
Link copied to clipboard
Link copied to clipboard
inline fun <T> Promise.launch(scope: CoroutineScope, crossinline action: suspend () -> T)
inline fun <T> PromiseIOS.launch(scope: CoroutineScope, crossinline action: suspend () -> T)
Link copied to clipboard
inline fun <T> Promise.launchJson(scope: CoroutineScope, crossinline action: suspend () -> T)
inline fun <T> PromiseIOS.launchJson(scope: CoroutineScope, crossinline action: suspend () -> T)
Link copied to clipboard
inline fun <T> Promise.runCatchingWithArguments(action: () -> T, argumentsTransform: (T) -> Any?)
inline fun <T> PromiseIOS.runCatchingWithArguments(action: () -> T, argumentsTransform: (T) -> Any?)
Link copied to clipboard
inline fun <T> EventEmitter.sendEventJson(eventName: String, params: T)
Link copied to clipboard
inline suspend fun <T> Flow<T>.toReact(subscriptionId: String, previous: String?): String
suspend fun <T> Flow<T>.toReact(subscriptionId: String, previous: String?, serializer: SerializationStrategy<T>): String
Link copied to clipboard
actual fun <T> toReactNativeValue(value: T): Any?
expect fun <T> toReactNativeValue(value: T): Any?
actual fun <T> toReactNativeValue(value: T): Any?
actual fun <T> toReactNativeValue(value: T): Any?
actual fun <T> toReactNativeValue(value: T): Any?
Link copied to clipboard
inline fun <T> toReactNativeValueJson(value: T): Any?

Complex types are serialized to JSON. Primitive types are passed as-is.

Link copied to clipboard
fun unsubscribeFromFlow(subscriptionId: String)