rn-swipeable-panel icon indicating copy to clipboard operation
rn-swipeable-panel copied to clipboard

Cant use textInput

Open abdullahIsa opened this issue 4 years ago • 6 comments
trafficstars

Hello really thanks for this beautiful project but somehow i cant use the textInput inside it, as soon as openLarge is true even if i dont set it to be true it goes out of the device view at the top unless i set onlySmall to be true then the problem does not occur, may i know how i can solve this problem.

abdullahIsa avatar Dec 30 '20 19:12 abdullahIsa

Hi @boicoder, thanks for using rn-swipeable-panel. Can you share other details for me? Screenshots, code piece that how you use SwipeablePanel, versions of RN and rn-swipeable-panel etc.

enesozturk avatar Dec 31 '20 10:12 enesozturk

I have the same issue, its because of scrollview from what i have seen in stackoverflow. Disabling scrollEnabled in scrollViewProps does not seem to work either. Whenever you click on the text input it goes out of screen, towards the top. Screen Shot 2021-01-02 at 3 01 49 PM

Screen Shot 2021-01-02 at 3 00 56 PM

Screen Shot 2021-01-02 at 3 01 32 PM

` <View style={{ marginTop: 20, marginHorizontal: 20, marginBottom: 10 }}>
                <TextField
                    //style={styles.searchBar}
                    placeholder="Type username..."
                    autoCapitalize="none"
                    autoCorrect={false}
                    returnKeyType="go"
                    clearButtonMode={true}
                    color={"black"}
                    placeholderTextColor={StyleGuide.palette.darkGray}
                    onSubmitEditing={this.searchOrEnterPressed}
                    password={false}
                    onChangeText={this.updateSearch}
                    maxLength={100}
                />
             </View>`

**TextField is a custom component that uses textinput

Bik182 avatar Jan 02 '21 21:01 Bik182

Also, how do you change the background color of the close button? I would like it to be transparent.

Bik182 avatar Jan 02 '21 21:01 Bik182

Hi @boicoder, thanks for using rn-swipeable-panel. Can you share other details for me? Screenshots, code piece that how you use SwipeablePanel, versions of RN and rn-swipeable-panel etc.

Sorry for late reply, i am using react native expo latest version of expo and my problem is exactly same as @Bik182 problem as he showed.

abdullahIsa avatar Jan 03 '21 02:01 abdullahIsa

Also, how do you change the background color of the close button? I would like it to be transparent.

use this: closeRootStyle , it accepts and object same like using style.

abdullahIsa avatar Jan 03 '21 02:01 abdullahIsa

Also, how do you change the background color of the close button? I would like it to be transparent.

use this: closeRootStyle , it accepts and object same like using style.

Thanks! Also, the ability to add a left action button would be great too ( I dont think there is one already). On the same x and y axis as the close button, but on the left.

Bik182 avatar Jan 03 '21 03:01 Bik182