I am trying to wrap `DatePicker` inside a `Android...
# compose
z
I am trying to wrap
DatePicker
inside a
AndroidView
but the final result is laggy. It does not scroll smoothly and I loose the snapping behavior. Can anyone please explain why this is happening?
Copy code
@Composable
fun SliderDate(
    modifier: Modifier
) {
    AndroidView(
        viewBlock = { context ->
            DatePicker(context).apply {
               init(2020, 3, 3){ picker,year,month,day ->
                   Timber.d("year: $year, month: $month, day: $day")
               }
            }
        },
        modifier = modifier,
        update = { datePicker ->

        }
    )
}