mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
testing flatlist rotation workaround for android
This commit is contained in:
parent
e1ecd64755
commit
c88261d20b
@ -78,10 +78,9 @@ export function Conversation({ navigation, cardId, channelId, closeConversation,
|
||||
</View>
|
||||
)}
|
||||
{ state.loaded && state.topics.length !== 0 && (
|
||||
<FlatList style={styles.conversation}
|
||||
<FlatList style={{ ...styles.conversation, transform: [{rotate: '180deg'}]}}
|
||||
contentContainerStyle={styles.topics}
|
||||
data={state.topics}
|
||||
inverted={true}
|
||||
initialNumToRender={16}
|
||||
renderItem={({item}) => <TopicItem item={item} focused={item.topicId === state.focus}
|
||||
focus={() => actions.setFocus(item.topicId)} hosting={state.host == null}
|
||||
|
@ -130,7 +130,7 @@ export function TopicItem({ item, focused, focus, hosting, remove, update, block
|
||||
}
|
||||
|
||||
return (
|
||||
<View style={styles.wrapper}>
|
||||
<View style={{ ...styles.wrapper, transform: [{rotate: '180deg'}]}}>
|
||||
<TouchableOpacity activeOpacity={1} style={styles.item} onPress={focus}>
|
||||
<View style={styles.header}>
|
||||
{ state.logo !== 'avatar' && state.logo && (
|
||||
|
Loading…
Reference in New Issue
Block a user