expo-native-sheet-emojis 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -20,11 +20,11 @@ buildscript {
|
|
|
20
20
|
android {
|
|
21
21
|
namespace "expo.community.modules.emojisheet"
|
|
22
22
|
|
|
23
|
-
compileSdkVersion safeExtGet("compileSdkVersion",
|
|
23
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 35)
|
|
24
24
|
|
|
25
25
|
defaultConfig {
|
|
26
|
-
minSdkVersion safeExtGet("minSdkVersion",
|
|
27
|
-
targetSdkVersion safeExtGet("targetSdkVersion",
|
|
26
|
+
minSdkVersion safeExtGet("minSdkVersion", 24)
|
|
27
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 35)
|
|
28
28
|
versionCode 1
|
|
29
29
|
versionName "1.0.0"
|
|
30
30
|
}
|
|
@@ -8,6 +8,9 @@ import android.view.View
|
|
|
8
8
|
import android.view.ViewGroup
|
|
9
9
|
import android.view.animation.AccelerateDecelerateInterpolator
|
|
10
10
|
import android.view.WindowManager
|
|
11
|
+
import androidx.core.view.ViewCompat
|
|
12
|
+
import androidx.core.view.WindowCompat
|
|
13
|
+
import androidx.core.view.WindowInsetsCompat
|
|
11
14
|
import android.widget.FrameLayout
|
|
12
15
|
import android.widget.LinearLayout
|
|
13
16
|
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
|
@@ -240,6 +243,18 @@ class EmojiSheetModule : Module() {
|
|
|
240
243
|
|
|
241
244
|
bottomSheet.setContentView(container)
|
|
242
245
|
|
|
246
|
+
ViewCompat.setOnApplyWindowInsetsListener(container) { view, insets ->
|
|
247
|
+
val imeInsets = insets.getInsets(WindowInsetsCompat.Type.ime())
|
|
248
|
+
val systemBarInsets = insets.getInsets(WindowInsetsCompat.Type.systemBars())
|
|
249
|
+
view.setPadding(
|
|
250
|
+
systemBarInsets.left,
|
|
251
|
+
0,
|
|
252
|
+
systemBarInsets.right,
|
|
253
|
+
maxOf(imeInsets.bottom, systemBarInsets.bottom)
|
|
254
|
+
)
|
|
255
|
+
WindowInsetsCompat.CONSUMED
|
|
256
|
+
}
|
|
257
|
+
|
|
243
258
|
// Strip ALL backgrounds from BottomSheet internals
|
|
244
259
|
bottomSheet.setOnShowListener { dlg ->
|
|
245
260
|
val d = dlg as BottomSheetDialog
|
|
@@ -252,7 +267,9 @@ class EmojiSheetModule : Module() {
|
|
|
252
267
|
pickerView.loadDataAsync()
|
|
253
268
|
}
|
|
254
269
|
|
|
255
|
-
bottomSheet.window?.
|
|
270
|
+
bottomSheet.window?.let { window ->
|
|
271
|
+
WindowCompat.setDecorFitsSystemWindows(window, false)
|
|
272
|
+
}
|
|
256
273
|
bottomSheet.window?.setDimAmount(backdropOpacity)
|
|
257
274
|
|
|
258
275
|
bottomSheet.behavior.apply {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = 'EmojiSheetModule'
|
|
3
|
-
s.version = '1.2.
|
|
3
|
+
s.version = '1.2.1'
|
|
4
4
|
s.summary = 'Native emoji picker bottom sheet for React Native'
|
|
5
5
|
s.description = 'A fully native iOS/Android emoji picker presented in a bottom sheet with search, skin tones, and theming support.'
|
|
6
6
|
s.author = ''
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-native-sheet-emojis",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "A fully native emoji picker bottom sheet for React Native. Built with Swift and Kotlin for maximum performance. Features search with multilingual keywords, skin tones, frequently used tracking, theming, and configurable layout.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|