Fix: ensure all views can scroll to the bottom

zio/stable
Paul Frazee 2023-01-19 15:21:06 -06:00
parent 2972fd8372
commit 80f58cf9f3
13 changed files with 15 additions and 5 deletions

View File

@ -128,6 +128,7 @@ export const SuggestedFollows = observer(
keyExtractor={item => item._reactKey}
renderItem={renderItem}
style={s.flex1}
contentContainerStyle={{paddingBottom: 200}}
/>
</View>
)}

View File

@ -15,7 +15,6 @@ import * as EmailValidator from 'email-validator'
import {Logo} from './Logo'
import {Picker} from '../util/Picker'
import {TextLink} from '../util/Link'
import {ToggleButton} from '../util/forms/ToggleButton'
import {Text} from '../util/text/Text'
import {s, colors} from '../../lib/styles'
import {
@ -366,7 +365,7 @@ export const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => {
</>
) : undefined}
</View>
<View style={{height: 100}} />
<View style={s.footerSpacer} />
</KeyboardAvoidingView>
</ScrollView>
)

View File

@ -76,6 +76,7 @@ export const Feed = observer(function Feed({
onRefresh={onRefresh}
onEndReached={onEndReached}
onScroll={onScroll}
contentContainerStyle={{paddingBottom: 200}}
/>
)}
</View>

View File

@ -75,6 +75,7 @@ export const PostRepostedBy = observer(function PostRepostedBy({
data={view.repostedBy}
keyExtractor={item => item._reactKey}
renderItem={renderItem}
contentContainerStyle={{paddingBottom: 200}}
/>
</View>
)

View File

@ -76,6 +76,7 @@ export const PostVotedBy = observer(function PostVotedBy({
data={view.votes}
keyExtractor={item => item._reactKey}
renderItem={renderItem}
contentContainerStyle={{paddingBottom: 200}}
/>
</View>
)

View File

@ -73,6 +73,7 @@ export const ProfileFollowers = observer(function ProfileFollowers({
data={view.followers}
keyExtractor={item => item._reactKey}
renderItem={renderItem}
contentContainerStyle={{paddingBottom: 200}}
/>
</View>
)

View File

@ -73,6 +73,7 @@ export const ProfileFollows = observer(function ProfileFollows({
data={view.follows}
keyExtractor={item => item._reactKey}
renderItem={renderItem}
contentContainerStyle={{paddingBottom: 200}}
/>
</View>
)

View File

@ -96,6 +96,7 @@ export function ViewSelector({
onScroll={onScroll}
onRefresh={onRefresh}
onEndReached={onEndReached}
contentContainerStyle={{paddingBottom: 200}}
/>
</HorzSwipe>
)

View File

@ -56,6 +56,9 @@ export const gradients = {
}
export const s = StyleSheet.create({
// helpers
footerSpacer: {height: 100},
// font weights
fw600: {fontWeight: '600'},
bold: {fontWeight: 'bold'},

View File

@ -76,7 +76,7 @@ export const Log = observer(function Log({navIdx, visible}: ScreenParams) {
</View>
)
})}
<View style={{height: 100}} />
<View style={s.footerSpacer} />
</ScrollView>
</View>
)

View File

@ -89,6 +89,7 @@ export const Search = ({navIdx, visible, params}: ScreenParams) => {
</View>
</TouchableOpacity>
))}
<View style={s.footerSpacer} />
</ScrollView>
) : (
<SuggestedFollows asLinks />

View File

@ -79,7 +79,7 @@ export const Settings = observer(function Settings({
title="Debug tools">
<Text style={pal.link}>Storybook</Text>
</Link>
<View style={{height: 100}} />
<View style={s.footerSpacer} />
</View>
</View>
)

View File

@ -175,7 +175,7 @@ export const Menu = observer(
{VersionNumber.buildVersion})
</Text>
</View>
<View style={{height: 100}} />
<View style={s.footerSpacer} />
</ScrollView>
)
},