Skip to content

Commit

Permalink
added async storage to store tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushkdas0611 committed May 6, 2024
1 parent c0acae5 commit 5ee8eb0
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
node_modules
.expo
.github
4 changes: 3 additions & 1 deletion App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useState, useEffect } from 'react';
import { StyleSheet, Text, View, KeyboardAvoidingView, TextInput, Platform, TouchableOpacity, Keyboard, AsyncStorage } from 'react-native';
import { StyleSheet, Text, View, KeyboardAvoidingView, TextInput, Platform, TouchableOpacity, Keyboard } from 'react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';

import Task from './components/Task';

export default function App() {
Expand Down
31 changes: 31 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.72.10",
"react-native-web": "~0.19.6"
"react-native-web": "~0.19.6",
"@react-native-async-storage/async-storage": "1.18.2"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down

0 comments on commit 5ee8eb0

Please sign in to comment.