* feat: add ios and rn source * fix(ios): remove testing keys * fix(tracker): change default path
20 lines
590 B
Kotlin
20 lines
590 B
Kotlin
package com.rntracker
|
|
|
|
import android.graphics.Color
|
|
import android.view.View
|
|
import com.facebook.react.uimanager.SimpleViewManager
|
|
import com.facebook.react.uimanager.ThemedReactContext
|
|
import com.facebook.react.uimanager.annotations.ReactProp
|
|
|
|
class RntrackerViewManager : SimpleViewManager<View>() {
|
|
override fun getName() = "RntrackerView"
|
|
|
|
override fun createViewInstance(reactContext: ThemedReactContext): View {
|
|
return View(reactContext)
|
|
}
|
|
|
|
@ReactProp(name = "color")
|
|
fun setColor(view: View, color: String) {
|
|
view.setBackgroundColor(Color.parseColor(color))
|
|
}
|
|
}
|