풀스택을꿈꾸는개발자

고정 헤더 영역

글 제목

메뉴 레이어

풀스택을꿈꾸는개발자

메뉴 리스트

  • 홈
  • 태그
  • 방명록
  • 분류 전체보기 (49)
    • react-native (25)
    • next-js (2)
    • docker (1)
    • node (7)
    • react-native-tool (9)
    • react-native 이론 (4)

검색 레이어

풀스택을꿈꾸는개발자

검색 영역

컨텐츠 검색

react #reactnative #@react-native-async-storage/async-storage

  • AsyncStorage @react-native-async-storage/async-storage

    2023.06.28 by RNDK

AsyncStorage @react-native-async-storage/async-storage

import React from 'react'; import AsyncStorage from '@react-native-async-storage/async-storage'; //USER_DATA is example export enum StorageKey { EXAMPLE = 'EXAMPLE', } /** * * @param key 키는 strageKey 참고 * @param data 저장할 데이터 */ export const SaveData = async (key: StorageKey, data: any) => { try { await AsyncStorage.setItem(key, JSON.stringify(data)); } catch (err) { console.log(err); } }; /** * ..

react-native-tool 2023. 6. 28. 11:20

추가 정보

인기글

최신글

페이징

이전
1
다음
TISTORY
풀스택을꿈꾸는개발자 © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바