Package-level declarations

Types

Link copied to clipboard
interface EventEmitter
EventEmitterImpl
Link copied to clipboard
class EventEmitterImpl(reactContext: ReactApplicationContext, val hasListeners: Flow<Boolean>) : EventEmitter
class EventEmitterImpl(sendEventFunction: (name: String, body: Any?) -> Unit, val hasListeners: StateFlow<Boolean>) : 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<T>(val resolve: IOSResolvePromise<T>, 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) : ReactContextBaseJavaModule

Functions

Link copied to clipboard
Link copied to clipboard
inline fun <T> Promise.launch(scope: CoroutineScope, crossinline action: suspend () -> T)
inline fun <T> PromiseIOS<T>.launch(scope: CoroutineScope, crossinline block: suspend () -> T)
Link copied to clipboard
inline fun <T> Promise.runCatching(action: () -> T)
Link copied to clipboard
fun <T> T.toArguments(): Any?
Link copied to clipboard
inline suspend fun <T> Flow<T>.toReact(previous: String?): String

Properties

Link copied to clipboard
val flowToReactJson: Json