diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle
index 0bc2af893..d0a3bf93b 100644
--- a/example/android/app/build.gradle
+++ b/example/android/app/build.gradle
@@ -127,7 +127,7 @@ android {
}
defaultConfig {
- applicationId "com.example.reactnativebottomsheet"
+ applicationId "dev.gorhom.bottomsheet"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
diff --git a/example/android/app/src/debug/java/com/example/reactnativebottomsheet/ReactNativeFlipper.java b/example/android/app/src/debug/java/dev/gorhom/bottomsheet/ReactNativeFlipper.java
similarity index 98%
rename from example/android/app/src/debug/java/com/example/reactnativebottomsheet/ReactNativeFlipper.java
rename to example/android/app/src/debug/java/dev/gorhom/bottomsheet/ReactNativeFlipper.java
index 53f119930..f6622e5dc 100644
--- a/example/android/app/src/debug/java/com/example/reactnativebottomsheet/ReactNativeFlipper.java
+++ b/example/android/app/src/debug/java/dev/gorhom/bottomsheet/ReactNativeFlipper.java
@@ -4,7 +4,7 @@
*
This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
-package com.example.reactnativebottomsheet;
+package dev.gorhom.bottomsheet;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml
index 0c93e195a..0c38fbde0 100644
--- a/example/android/app/src/main/AndroidManifest.xml
+++ b/example/android/app/src/main/AndroidManifest.xml
@@ -1,5 +1,5 @@
+ package="dev.gorhom.bottomsheet">
diff --git a/example/android/app/src/main/ic_launcher-playstore.png b/example/android/app/src/main/ic_launcher-playstore.png
new file mode 100644
index 000000000..4367b20da
Binary files /dev/null and b/example/android/app/src/main/ic_launcher-playstore.png differ
diff --git a/example/android/app/src/main/java/com/example/reactnativebottomsheet/MainActivity.java b/example/android/app/src/main/java/dev/gorhom/bottomsheet/MainActivity.java
similarity index 94%
rename from example/android/app/src/main/java/com/example/reactnativebottomsheet/MainActivity.java
rename to example/android/app/src/main/java/dev/gorhom/bottomsheet/MainActivity.java
index c4ee8692a..0fbaff4d0 100644
--- a/example/android/app/src/main/java/com/example/reactnativebottomsheet/MainActivity.java
+++ b/example/android/app/src/main/java/dev/gorhom/bottomsheet/MainActivity.java
@@ -1,4 +1,4 @@
-package com.example.reactnativebottomsheet;
+package dev.gorhom.bottomsheet;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
@@ -25,4 +25,4 @@ protected ReactRootView createRootView() {
}
};
}
-}
\ No newline at end of file
+}
diff --git a/example/android/app/src/main/java/com/example/reactnativebottomsheet/MainApplication.java b/example/android/app/src/main/java/dev/gorhom/bottomsheet/MainApplication.java
similarity index 94%
rename from example/android/app/src/main/java/com/example/reactnativebottomsheet/MainApplication.java
rename to example/android/app/src/main/java/dev/gorhom/bottomsheet/MainApplication.java
index 48a47d8a7..e868f1a53 100644
--- a/example/android/app/src/main/java/com/example/reactnativebottomsheet/MainApplication.java
+++ b/example/android/app/src/main/java/dev/gorhom/bottomsheet/MainApplication.java
@@ -1,4 +1,4 @@
-package com.example.reactnativebottomsheet;
+package dev.gorhom.bottomsheet;
import android.app.Application;
import android.content.Context;
@@ -59,7 +59,7 @@ private static void initializeFlipper(Context context, ReactInstanceManager reac
We use reflection here to pick up the class that initializes Flipper,
since Flipper library is not available in release mode
*/
- Class> aClass = Class.forName("com.reactnativebottomsheetExample.ReactNativeFlipper");
+ Class> aClass = Class.forName("dev.gorhom.bottomsheet.ReactNativeFlipper");
aClass
.getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
.invoke(null, context, reactInstanceManager);
diff --git a/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 000000000..036d09bc5
--- /dev/null
+++ b/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 000000000..036d09bc5
--- /dev/null
+++ b/example/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
index a2f590828..4fbbc6092 100644
Binary files a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 000000000..f8f98270d
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
index 1b5239980..4fbbc6092 100644
Binary files a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
index ff10afd6e..be0816689 100644
Binary files a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 000000000..8d934b5b2
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
index 115a4c768..be0816689 100644
Binary files a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index dcd3cd808..959aa628b 100644
Binary files a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 000000000..541e5f0a1
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
index 459ca609d..959aa628b 100644
Binary files a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index 8ca12fe02..8edb8579e 100644
Binary files a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 000000000..acdd88baa
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
index 8e19b410a..8edb8579e 100644
Binary files a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index b824ebdd4..ef702a83b 100644
Binary files a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 000000000..4ddf1922d
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
index 4c19a13c2..ef702a83b 100644
Binary files a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/example/android/app/src/main/res/values/ic_launcher_background.xml b/example/android/app/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 000000000..beab31f75
--- /dev/null
+++ b/example/android/app/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+
+
+ #000000
+
\ No newline at end of file
diff --git a/example/ios/BottomSheetExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/ios/BottomSheetExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 000000000..18d981003
--- /dev/null
+++ b/example/ios/BottomSheetExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/100.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/100.png
new file mode 100644
index 000000000..9d09b2964
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/100.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/1024.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/1024.png
new file mode 100644
index 000000000..21b184fe3
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/1024.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/114.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/114.png
new file mode 100644
index 000000000..5a8bc8fac
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/114.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/120.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/120.png
new file mode 100644
index 000000000..651271304
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/120.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/144.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/144.png
new file mode 100644
index 000000000..65a9bb960
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/144.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/152.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/152.png
new file mode 100644
index 000000000..8952528eb
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/152.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/167.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/167.png
new file mode 100644
index 000000000..0a775a4d8
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/167.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/180.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/180.png
new file mode 100644
index 000000000..50874630a
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/180.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/20.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/20.png
new file mode 100644
index 000000000..6b20674cc
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/20.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/29.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/29.png
new file mode 100644
index 000000000..dcc6d0fe5
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/29.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/40.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/40.png
new file mode 100644
index 000000000..661fc108e
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/40.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/50.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/50.png
new file mode 100644
index 000000000..64d228e1a
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/50.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/57.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/57.png
new file mode 100644
index 000000000..87252e3b4
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/57.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/58.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/58.png
new file mode 100644
index 000000000..3ae0843a9
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/58.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/60.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/60.png
new file mode 100644
index 000000000..6a6900c8c
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/60.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/72.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/72.png
new file mode 100644
index 000000000..665280675
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/72.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/76.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/76.png
new file mode 100644
index 000000000..a7ce0f047
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/76.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/80.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/80.png
new file mode 100644
index 000000000..afa17f979
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/80.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/87.png b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/87.png
new file mode 100644
index 000000000..3c86cd51f
Binary files /dev/null and b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/87.png differ
diff --git a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/Contents.json b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/Contents.json
index 118c98f74..65b74d7ef 100644
--- a/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/Contents.json
+++ b/example/ios/BottomSheetExample/Images.xcassets/AppIcon.appiconset/Contents.json
@@ -1,38 +1 @@
-{
- "images" : [
- {
- "idiom" : "iphone",
- "size" : "29x29",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "29x29",
- "scale" : "3x"
- },
- {
- "idiom" : "iphone",
- "size" : "40x40",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "40x40",
- "scale" : "3x"
- },
- {
- "idiom" : "iphone",
- "size" : "60x60",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "60x60",
- "scale" : "3x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
\ No newline at end of file
+{"images":[{"size":"60x60","expected-size":"180","filename":"180.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"40x40","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"60x60","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"57x57","expected-size":"57","filename":"57.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"57x57","expected-size":"114","filename":"114.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"60","filename":"60.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"1024x1024","filename":"1024.png","expected-size":"1024","idiom":"ios-marketing","folder":"Assets.xcassets/AppIcon.appiconset/","scale":"1x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"72x72","expected-size":"72","filename":"72.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"76x76","expected-size":"152","filename":"152.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"50x50","expected-size":"100","filename":"100.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"76x76","expected-size":"76","filename":"76.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"50x50","expected-size":"50","filename":"50.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"72x72","expected-size":"144","filename":"144.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"40x40","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"83.5x83.5","expected-size":"167","filename":"167.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"20x20","expected-size":"20","filename":"20.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"}]}
\ No newline at end of file
diff --git a/example/src/components/contactList/ContactList.tsx b/example/src/components/contactList/ContactList.tsx
index d07e2e647..ea64d987d 100644
--- a/example/src/components/contactList/ContactList.tsx
+++ b/example/src/components/contactList/ContactList.tsx
@@ -88,7 +88,7 @@ const ContactList = ({
return (
i.name}
+ keyExtractor={(item, index) => `${type}.${item.name}.${index}`}
initialNumToRender={10}
windowSize={20}
maxToRenderPerBatch={5}
@@ -120,7 +120,7 @@ const ContactList = ({
windowSize={20}
maxToRenderPerBatch={5}
sections={sections}
- keyExtractor={i => i.name}
+ keyExtractor={(item, index) => `${type}.${item.name}.${index}`}
renderSectionHeader={renderSectionHeader}
renderItem={renderSectionItem}
{...(header && {
diff --git a/preview.gif b/preview.gif
new file mode 100644
index 000000000..647db2707
Binary files /dev/null and b/preview.gif differ
diff --git a/src/components/bottomSheet/BottomSheet.tsx b/src/components/bottomSheet/BottomSheet.tsx
index c8615fe9a..835b85d72 100644
--- a/src/components/bottomSheet/BottomSheet.tsx
+++ b/src/components/bottomSheet/BottomSheet.tsx
@@ -194,7 +194,7 @@ const BottomSheetComponent = forwardRef(
//#region callbacks
const refreshUIElements = useCallback(() => {
- const currentPositionIndex = currentPositionIndexRef.current;
+ const currentPositionIndex = Math.max(currentPositionIndexRef.current, 0);
if (currentPositionIndex === snapPoints.length - 1) {
flashScrollableIndicators();
// @ts-ignore
@@ -204,7 +204,7 @@ const BottomSheetComponent = forwardRef(
} else {
// @ts-ignore
rootTapGestureRef.current.setNativeProps({
- maxDeltaY: Math.round(snapPoints[currentPositionIndex]),
+ maxDeltaY: snapPoints[currentPositionIndex],
});
}
}, [snapPoints, flashScrollableIndicators]);