Strange white space at the bottom of sheet (iOS only)
See original GitHub issueBug
Environment info
Library | Version |
---|---|
@gorhom/bottom-sheet | 3.6.6 |
expo sdk | 42 |
react-native-reanimated | 2.2.0 |
react-native-gesture-handler | 1.10.2 |
Steps To Reproduce
- install bottom sheet
- set up BottomSheetFlatList inside of Bottom sheet modal
Describe what you expected to happen:
- There should be no space at the bottom randomly
Reproducible sample code
<BottomSheetModalProvider>
<BottomSheetModal
ref={bottomSheetModalRef}
index={1}
snapPoints={snapPoints}
onChange={handleSheetChangesModal}
animationConfigs={animationConfigs}
// backdropComponent={backdropComponent}
handleComponent={CustomHandleComponent}
// dismissOnPanDown={true}
style={{
flex: 1,
}}
footerHeight={50}
>
{/* <View
style={{
paddingTop: insets.top,
flex: 1,
paddingVertical: 10,
}}
> */}
<View
style={{
...s2.searchCont,
marginTop: insets.top,
}}
>
<View style={s2.cancelButtonCont}>
<Animated.View style={[cancelStyle]}>
<TouchableOpacity onPress={expandSearchBar}>
<Text
style={s2.cancelButton}
maxFontSizeMultiplier={
colors.maxFontSizeMultiplier
}
>
Cancel
</Text>
</TouchableOpacity>
</Animated.View>
</View>
<Animated.View
style={[s2.searchCompCont, searchContStyle]}
>
<Ionicons
name="search-outline"
size={20}
color={'rgba(124,124,124,1)'}
maxFontSizeMultiplier={
colors.maxFontSizeMultiplier
}
/>
<TextInput
maxFontSizeMultiplier={
colors.maxFontSizeMultiplier
}
style={s2.input}
placeholder="Search"
placeholderTextColor={'rgba(124,124,124,1)'}
underlineColorAndroid="rgba(255,255,255,0)"
onFocus={startWidthAnim}
onChangeText={onChange}
></TextInput>
</Animated.View>
</View>
<BottomSheetFlatList
style={s2.flatList}
data={friends}
keyExtractor={keyExtractor2}
renderItem={renderItem2}
showsVerticalScrollIndicator={false}
// ListEmptyComponent
/>
<View
style={{
...s2.bottomActions,
height: 60 + insets.bottom,
}}
>
<View style={s2.bottomButtonsCont}>
<TouchableOpacity
onPress={donePressedHandler}
style={s2.doneButton}
>
<Text
maxFontSizeMultiplier={
colors.maxFontSizeMultiplier
}
style={s2.doneText}
>
Done
</Text>
</TouchableOpacity>
</View>
</View>
</BottomSheetModal>
</BottomSheetModalProvider>
Issue Analytics
- State:
- Created 2 years ago
- Comments:19 (8 by maintainers)
Top Results From Across the Web
White space at page bottom after device rotation in iOS Safari
This seems to be related to the Safari behaviour when it hides the address panel and the bottom panel when the device goes...
Read more >iOS 14 empty space at bottom - iPhone - Apple Discussions
When you only use 1 Home Screen page like I do, there's a large empty space at the bottom of the screen. Is...
Read more >Is this a mobile Safari bug? White space appears at bottom ...
Hi, I'm encountering a really strange issue that I've tracked down to only occurring in iOS Safari starting with iOS 12.2.
Read more >White space at the top and bottom of my page - Bug - AppGyver
Hi! I am creating an app and when I look on the appgyver app on my phone there's this white space at the...
Read more >Fixing a blank white space at the bottom of your website
Which will select every element, and give it a red border. Inspect your html page, and see if you can decipher which element...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You are the shit. Cant put it any other way.
Sure thing.
https://snack.expo.dev/@haibert/bottom-sheet-v4-reproducible-issue-template