React Native fixed footer

4ega picture 4ega · Apr 4, 2015 · Viewed 186.6k times · Source

I try to create react native app that looks like existing web app. I have a fixed footer at bottom of window. Do anyone have idea how this can be achieved with react native?

in existing app it's simple:

.footer {
  position: fixed;
  bottom: 0;
}

Answer

Alexander Zaytsev picture Alexander Zaytsev · Jul 6, 2015

Here's the actual code based on Colin's Ramsay answer:

<View style={{flex: 1}}>
  <ScrollView>main</ScrollView>
  <View><Text>footer</Text></View>
</View>