Skip to content

Commit

Permalink
refactor to use async storage from @react-native-async-storage/async-…
Browse files Browse the repository at this point in the history
…storage
  • Loading branch information
rizzomichaelg committed Sep 26, 2022
1 parent 7fd9530 commit 5ee35d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion RatingsData.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { AsyncStorage } from 'react-native';
import React from 'react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';

const keyPrefix = '@RNRatingRequest.';
const eventCountKey = keyPrefix + 'EventCount';
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rn-rating-requester",
"version": "3.1.0",
"version": "3.2.0",
"description": "A React Native component to prompt users for a rating after positive interactions",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -32,6 +32,7 @@
"react-native": ">= 0.20.0"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.10",
"lodash": "^4.17.10"
}
}

0 comments on commit 5ee35d0

Please sign in to comment.