Skip to content

Commit

Permalink
feat: Set the local notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
trentschnee committed Apr 14, 2020
1 parent 3521a52 commit 6618bd3
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import NewDeck from './components/NewDeck';
import reducer from "./reducers";
import middleware from "./middleware";
import AddCard from './components/AddCard';
import {setLocalNotification} from './utils/helpers'
function HomeScreen({navigation,route}){
const Tabs = createBottomTabNavigator();
return(
Expand Down Expand Up @@ -43,7 +44,12 @@ function AllStacks ( {navigation,route} ) {
);
}

export default function App() {
export default class App extends React.Component {
// Set local notification for the first time
componentDidMount(){
setLocalNotification()
}
render(){
return (

<Provider store={createStore(reducer,middleware)}>
Expand All @@ -57,12 +63,4 @@ export default function App() {
</Provider>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
}

0 comments on commit 6618bd3

Please sign in to comment.