feat(rn,welcome) React Navigation drawer

This commit is contained in:
Calinteodor
2021-11-11 16:32:56 +02:00
committed by GitHub
parent f5cdd5fca1
commit 4e2fea1e12
63 changed files with 1137 additions and 1100 deletions

View File

@@ -1,7 +1,7 @@
// @flow
import React from 'react';
import { TouchableWithoutFeedback } from 'react-native';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { Icon } from '../../../base/icons';
@@ -22,17 +22,18 @@ type Props = {
/**
* The component's external style.
*/
style: Object
style?: Object
}
const HeaderNavigationButton = ({ onPress, src, style }: Props) => (
<TouchableWithoutFeedback
onPress = { onPress } >
<TouchableOpacity
onPress = { onPress }
style = { styles.headerNavigationButton } >
<Icon
size = { 20 }
src = { src }
style = { [ styles.headerNavigationButton, style ] } />
</TouchableWithoutFeedback>
style = { [ styles.headerNavigationIcon, style ] } />
</TouchableOpacity>
);