Fix: ensure all views can scroll to the bottom
parent
2972fd8372
commit
80f58cf9f3
|
@ -128,6 +128,7 @@ export const SuggestedFollows = observer(
|
||||||
keyExtractor={item => item._reactKey}
|
keyExtractor={item => item._reactKey}
|
||||||
renderItem={renderItem}
|
renderItem={renderItem}
|
||||||
style={s.flex1}
|
style={s.flex1}
|
||||||
|
contentContainerStyle={{paddingBottom: 200}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -15,7 +15,6 @@ import * as EmailValidator from 'email-validator'
|
||||||
import {Logo} from './Logo'
|
import {Logo} from './Logo'
|
||||||
import {Picker} from '../util/Picker'
|
import {Picker} from '../util/Picker'
|
||||||
import {TextLink} from '../util/Link'
|
import {TextLink} from '../util/Link'
|
||||||
import {ToggleButton} from '../util/forms/ToggleButton'
|
|
||||||
import {Text} from '../util/text/Text'
|
import {Text} from '../util/text/Text'
|
||||||
import {s, colors} from '../../lib/styles'
|
import {s, colors} from '../../lib/styles'
|
||||||
import {
|
import {
|
||||||
|
@ -366,7 +365,7 @@ export const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => {
|
||||||
</>
|
</>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
</View>
|
</View>
|
||||||
<View style={{height: 100}} />
|
<View style={s.footerSpacer} />
|
||||||
</KeyboardAvoidingView>
|
</KeyboardAvoidingView>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
)
|
)
|
||||||
|
|
|
@ -76,6 +76,7 @@ export const Feed = observer(function Feed({
|
||||||
onRefresh={onRefresh}
|
onRefresh={onRefresh}
|
||||||
onEndReached={onEndReached}
|
onEndReached={onEndReached}
|
||||||
onScroll={onScroll}
|
onScroll={onScroll}
|
||||||
|
contentContainerStyle={{paddingBottom: 200}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|
|
@ -75,6 +75,7 @@ export const PostRepostedBy = observer(function PostRepostedBy({
|
||||||
data={view.repostedBy}
|
data={view.repostedBy}
|
||||||
keyExtractor={item => item._reactKey}
|
keyExtractor={item => item._reactKey}
|
||||||
renderItem={renderItem}
|
renderItem={renderItem}
|
||||||
|
contentContainerStyle={{paddingBottom: 200}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|
|
@ -76,6 +76,7 @@ export const PostVotedBy = observer(function PostVotedBy({
|
||||||
data={view.votes}
|
data={view.votes}
|
||||||
keyExtractor={item => item._reactKey}
|
keyExtractor={item => item._reactKey}
|
||||||
renderItem={renderItem}
|
renderItem={renderItem}
|
||||||
|
contentContainerStyle={{paddingBottom: 200}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|
|
@ -73,6 +73,7 @@ export const ProfileFollowers = observer(function ProfileFollowers({
|
||||||
data={view.followers}
|
data={view.followers}
|
||||||
keyExtractor={item => item._reactKey}
|
keyExtractor={item => item._reactKey}
|
||||||
renderItem={renderItem}
|
renderItem={renderItem}
|
||||||
|
contentContainerStyle={{paddingBottom: 200}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|
|
@ -73,6 +73,7 @@ export const ProfileFollows = observer(function ProfileFollows({
|
||||||
data={view.follows}
|
data={view.follows}
|
||||||
keyExtractor={item => item._reactKey}
|
keyExtractor={item => item._reactKey}
|
||||||
renderItem={renderItem}
|
renderItem={renderItem}
|
||||||
|
contentContainerStyle={{paddingBottom: 200}}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|
|
@ -96,6 +96,7 @@ export function ViewSelector({
|
||||||
onScroll={onScroll}
|
onScroll={onScroll}
|
||||||
onRefresh={onRefresh}
|
onRefresh={onRefresh}
|
||||||
onEndReached={onEndReached}
|
onEndReached={onEndReached}
|
||||||
|
contentContainerStyle={{paddingBottom: 200}}
|
||||||
/>
|
/>
|
||||||
</HorzSwipe>
|
</HorzSwipe>
|
||||||
)
|
)
|
||||||
|
|
|
@ -56,6 +56,9 @@ export const gradients = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const s = StyleSheet.create({
|
export const s = StyleSheet.create({
|
||||||
|
// helpers
|
||||||
|
footerSpacer: {height: 100},
|
||||||
|
|
||||||
// font weights
|
// font weights
|
||||||
fw600: {fontWeight: '600'},
|
fw600: {fontWeight: '600'},
|
||||||
bold: {fontWeight: 'bold'},
|
bold: {fontWeight: 'bold'},
|
||||||
|
|
|
@ -76,7 +76,7 @@ export const Log = observer(function Log({navIdx, visible}: ScreenParams) {
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
<View style={{height: 100}} />
|
<View style={s.footerSpacer} />
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|
|
@ -89,6 +89,7 @@ export const Search = ({navIdx, visible, params}: ScreenParams) => {
|
||||||
</View>
|
</View>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
))}
|
))}
|
||||||
|
<View style={s.footerSpacer} />
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
) : (
|
) : (
|
||||||
<SuggestedFollows asLinks />
|
<SuggestedFollows asLinks />
|
||||||
|
|
|
@ -79,7 +79,7 @@ export const Settings = observer(function Settings({
|
||||||
title="Debug tools">
|
title="Debug tools">
|
||||||
<Text style={pal.link}>Storybook</Text>
|
<Text style={pal.link}>Storybook</Text>
|
||||||
</Link>
|
</Link>
|
||||||
<View style={{height: 100}} />
|
<View style={s.footerSpacer} />
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|
|
@ -175,7 +175,7 @@ export const Menu = observer(
|
||||||
{VersionNumber.buildVersion})
|
{VersionNumber.buildVersion})
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={{height: 100}} />
|
<View style={s.footerSpacer} />
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue