赞
踩
- import {
- AsyncStorage,
- } from 'react-native';
- (res) => {
- console.log('getColumnList res from home:', res);
- AsyncStorage.setItem('columnList', JSON.stringify(res), (error) => {
- if (error) {
- console.log('存储失败');
- } else {
- console.log('存储成功');
- }
- });
- },
- AsyncStorage.getItem('columnList', (error, result) => {
- if (!error) {
- const res = JSON.parse(result);
- console.log('AsyncStorage******************', res);
- this.setState({ columnList: res.list });
- }
- });
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。