mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 11:21:41 +03:00
showing add button as footer
This commit is contained in:
parent
8b06184657
commit
d8c0c50689
@ -32,6 +32,13 @@ const SnippetsModal = ({ username, handleOnSelect }) => {
|
||||
return (
|
||||
<>
|
||||
<Text style={styles.title}>Nothing here</Text>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
const _renderListFooter = () => {
|
||||
return (
|
||||
<>
|
||||
<MainButton
|
||||
style={{ width: 150 }}
|
||||
onPress={() => Alert.alert('create new snippet')}
|
||||
@ -58,6 +65,7 @@ const SnippetsModal = ({ username, handleOnSelect }) => {
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
ListEmptyComponent={_renderEmptyContent}
|
||||
ListFooterComponent={_renderListFooter}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
|
Loading…
Reference in New Issue
Block a user