Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29624

I click on input and open keypad so header move even I using navigation header

$
0
0

I also try scrollview element but I didn't get any solution I want to header sticky on top.

I am using this code

<View style={styles.test}><Stack.Navigator><Stack.Screen        name="Home"        component={ProgressBar}        options={{          headerStyle: {            backgroundColor: '#f4511e',            position:'relative',            top:0,            height:hp("10.1%"),            flexGrow: 1,            position:"absolute",            top:0          },          // headerTitle: props => <LogoTitle {...props} />,          headerRight: () => (<CButton              onPress={() => alert('This is a button!')}              title="Info"              color="#fff"            />          ),        }}          />

I also try this one.

<KeyboardAvoidingView   style={styles.gradientImg}   contentContainerStyle={{ flexGrow: 1 }} scrollEnabled></KeyboardAvoidingView>

Viewing all articles
Browse latest Browse all 29624

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>