/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager import com.facebook.proguard.annotations.DoNotStripAny import com.facebook.react.bridge.NativeMap import com.facebook.react.bridge.RuntimeExecutor import com.facebook.soloader.SoLoader import kotlin.jvm.JvmStatic @DoNotStripAny internal object UIConstantsProviderBinding { init { SoLoader.loadLibrary("uimanagerjni") } @JvmStatic public external fun install( runtimeExecutor: RuntimeExecutor, defaultEventTypesProvider: DefaultEventTypesProvider, viewManagerConstantsProvider: ConstantsForViewManagerProvider, constantsProvider: ConstantsProvider ) @DoNotStripAny public interface DefaultEventTypesProvider { /* Returns UIManager's constants. */ public fun getDefaultEventTypes(): NativeMap } @DoNotStripAny public interface ConstantsForViewManagerProvider { /* Returns UIManager's constants. */ public fun getConstantsForViewManager(viewManagerName: String): NativeMap? } @DoNotStripAny public interface ConstantsProvider { /* Returns UIManager's constants. */ public fun getConstants(): NativeMap } }