initial commit
This commit is contained in:
commit
e3f66e4fa6
181 changed files with 25033 additions and 0 deletions
4
src/component/navigationButton/index.js
Normal file
4
src/component/navigationButton/index.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { connect } from 'react-redux';
|
||||
import NavigationButton from './view';
|
||||
|
||||
export default connect()(NavigationButton);
|
17
src/component/navigationButton/view.js
Normal file
17
src/component/navigationButton/view.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import React from 'react';
|
||||
import Icon from 'react-native-vector-icons/FontAwesome5';
|
||||
import { TouchableOpacity } from 'react-native';
|
||||
|
||||
class NavigationButton extends React.PureComponent {
|
||||
render() {
|
||||
const { iconStyle, name, onPress, size, style } = this.props;
|
||||
|
||||
return (
|
||||
<TouchableOpacity onPress={onPress} style={style}>
|
||||
<Icon name={name} size={size} style={iconStyle} />
|
||||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default NavigationButton;
|
Loading…
Add table
Add a link
Reference in a new issue