react-native-keyboard-aware-scroll-view icon indicating copy to clipboard operation
react-native-keyboard-aware-scroll-view copied to clipboard

In Android Scroll Not working When add it inside View

Open Salmankhan033 opened this issue 3 years ago • 2 comments

When I place it inside a View then Scroll is not working in android but it's good on IOS. Below is my code


return (
   <View style={styles.container}>
     <Header
       title="Create your budget"
       iconLeft={SVGS.BackArrow}
       leftIconPress={() => props.navigation.goBack()}
     />
     <KeyboardAwareScrollView>
 
         <CreateBudgetHeader pageNo={1} icon={SVGS.BudgetOne} />
         <View>
           <Text style={styles.text}>Enter Budget Name</Text>
           <CustomTextInput
             placeholder={'Name'}
             onFocus={() => setNameFocus(true)}
             isFocus={nameFocus}
             onBlur={() => submitName()}
             errorText={nameErrorText}
             onChangeText={text => setName(text)}
             style={styles.inPutContainer}
             inputStyle={styles.input}
             errorTextStyle={styles.errorText}
             value={name}
           />
         </View>
         <View style={styles.btnView}>
           {name == '' ? (
             <CustomButton
               title={'Continue'}
               onPress={() => onPressContinue()}
               containerStyle={{backgroundColor: Colors.gray}}
               disabled={true}
             />
           ) : (
             <CustomButton
               title={'Continue'}
               onPress={() => onPressContinue()}
             />
           )}
         </View>
    
     </KeyboardAwareScrollView>
   </View>
 );
};

Salmankhan033 avatar Jul 18 '22 06:07 Salmankhan033

Any updates on this issue?

jtvargas avatar Sep 14 '22 15:09 jtvargas

The description of this issue is a little ambiguous so excuse me if this is not relevant...

I have experienced, what I believe is, a similar issue. When any other component is a sibling of the KeyboardAwareScrollView, it does not show on Android. In my case the sibling is a PortalHost from the @gorhom/react-native-portal library.

If anyone else ends up here with the issue I have described, my work around was to set the KeyboardAwareScrollView style.position to absolute.

david-gettins avatar Mar 07 '24 11:03 david-gettins