Skip to content

Instantly share code, notes, and snippets.

@yamankatby
Created October 5, 2019 10:14
Show Gist options
  • Save yamankatby/674fc6a85ee813031cfe0e02bf9af1d4 to your computer and use it in GitHub Desktop.
Save yamankatby/674fc6a85ee813031cfe0e02bf9af1d4 to your computer and use it in GitHub Desktop.
import React from "react";
import { View } from "react-native";
import { connect } from "react-redux";
import ProgressOverlay from "react-native-progress-overlay";
const App = props => {
return (
<View>
<ProgressOverlay visible={props.visible} text={props.text} />
</View>
);
};
const mapStateToProps = state => {
return {
visible: state.progress.visible,
text: state.progress.text
};
};
export default connect(mapStateToProps)(App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment