-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathAmaPackage.kt
More file actions
25 lines (21 loc) · 874 Bytes
/
AmaPackage.kt
File metadata and controls
25 lines (21 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.reactnativeama
import android.util.Log
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
import com.reactnativeama.components.AMAWrapperManager
import com.reactnativeama.modules.AMAKeyboardModule
class AmaPackage : ReactPackage {
init {
Log.d("AmaPackage", "AmaPackage is being initialized")
}
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
throw IllegalArgumentException()
return listOf(AMAKeyboardModule(reactContext))
}
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
Log.d("AmaPackage", "AmaPackage is being initialized")
return listOf(AMAWrapperManager())
}
}