diff --git a/src/assets/gerbil-happy.png b/src/assets/gerbil-happy.png new file mode 100644 index 0000000..4247f83 Binary files /dev/null and b/src/assets/gerbil-happy.png differ diff --git a/src/assets/gerbil-sad.png b/src/assets/gerbil-sad.png new file mode 100644 index 0000000..153d4ad Binary files /dev/null and b/src/assets/gerbil-sad.png differ diff --git a/src/component/emptyStateView/index.js b/src/component/emptyStateView/index.js new file mode 100644 index 0000000..53e1c84 --- /dev/null +++ b/src/component/emptyStateView/index.js @@ -0,0 +1,4 @@ +import { connect } from 'react-redux'; +import EmptyStateView from './view'; + +export default connect()(EmptyStateView); diff --git a/src/component/emptyStateView/view.js b/src/component/emptyStateView/view.js new file mode 100644 index 0000000..e69ceda --- /dev/null +++ b/src/component/emptyStateView/view.js @@ -0,0 +1,26 @@ +import React from 'react'; +import { NativeModules, Text, View, Image, TouchableOpacity } from 'react-native'; +import Button from '../button'; +import emptyStateStyle from 'styles/emptyState'; + +class EmptyStateView extends React.PureComponent { + render() { + const { message, buttonText, inner, onButtonPress } = this.props; + + return ( + + + {message} + {buttonText && ( + +