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
abstract class ReactNativeModuleBase(reactContext: ReactApplicationContext, supportedEvents: List<String>) : ReactContextBaseJavaModule
Link copied to clipboard
actual interface ReactNativeModuleProvider
expect interface ReactNativeModuleProvider
actual interface ReactNativeModuleProvider

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
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?
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)

Properties

Link copied to clipboard