Integration with Jetpack Compose ?
Is it possible to integrate Emoji with Jetpack Compose? If so, how? If not, is it planned?
Currently not. Probably similar to emoji-material there should be a emoji-compose library module which has compose support
It's possible now. I've used it in few application. You don't typically need any dependency for that. And Also I'll add up a bit of code how to convert the unicode to emotes using the function.
The code to convert unicode to emote. String(Character.toChars(/ur unicode/))
@Composable fun Smily() { Column( verticalArrangement = Arrangement.Center, horizontalAlignment = Alignment.CenterHorizontally, modifier = Modifier.fillMaxSize() ) { Text(text = String(Character.toChars(0x1F642)), fontSize = 100.sp) } }

I am trying to use the EmojiView in Jetpack like this,
val view = LocalView.current
AndroidView(factory = { context ->
EmojiView(context).apply {
setUp(
onEmojiClickListener = { emoji ->
Log.d("emoji", emoji.unicode)
},
rootView = view,
editText = null,
onEmojiBackspaceClickListener = null
)
}
}, modifier = Modifier.weight(1f).fillMaxWidth())
Getting this error
android.view.InflateException: Binary XML file line #2 in com.qwillio.vendi:layout/emoji_view_category: Binary XML file line #2 in com.qwillio.vendi:layout/emoji_view_category: Error inflating class android.widget.ImageButton Caused by: android.view.InflateException: Binary XML file line #2 in com.qwillio.vendi:layout/emoji_view_category: Error inflating class android.widget.ImageButton Caused by: java.lang.reflect.InvocationTargetException
how to properly use EmojiView in Jetpack compose? @vanniktech
How do we use this in jetpack compose?
any update here? I'm just trying to add the library to a KMP app and in the common compose module it's not available though in others it is