APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.24k stars 643 forks source link

Scrolling to previous focused textinput when clicking on outside of input box - IOS #534

Open Joshig99 opened 2 years ago

Joshig99 commented 2 years ago

https://user-images.githubusercontent.com/46310246/164512756-35da534d-02fd-460d-ae4e-291be6b6dcc4.mov

it is scrolling to previous focused textinput when clicking on outside of the input box this my code

         <Card.Content style={{ paddingHorizontal: 0 }}  >
          <KeyboardAwareScrollView
            extraScrollHeight={150}
            ref={(r)=>setScrollRef(r)}
            keyboardOpeningTime={0}
            bounces={false}
            bouncesZoom={false}
            enableResetScrollToCoords={false}
            alwaysBounceVertical={false}
            keyboardShouldPersistTaps={'handled'}
          >
            <Card.Content style={{ paddingHorizontal: 0,}}>
              .......

"react-native-keyboard-aware-scroll-view": "^0.9.4", "react-native": "0.64.2",