question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strange white space at the bottom of sheet (iOS only)

See original GitHub issue

Bug

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

  1. install bottom sheet
  2. set up BottomSheetFlatList inside of Bottom sheet modal

Describe what you expected to happen:

  1. 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>

IMG_0791

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
haibertcommented, Aug 11, 2021

You are the shit. Cant put it any other way.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found