Skip to content

Commit

Permalink
Merge pull request #62 from maniac-tech/issue-61
Browse files Browse the repository at this point in the history
fix: Revert the logic check to less than 23
  • Loading branch information
maniac-tech authored Jul 21, 2024
2 parents f589465 + 74cce37 commit 791f38e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function startReadSMS(callback) {
}

export const checkIfHasSMSPermission = async () => {
if (Platform.OS === "android" && Platform.Version > 23) {
if (Platform.OS === "android" && Platform.Version < 23) {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maniac-tech/react-native-expo-read-sms",
"version": "7.0.0",
"version": "7.1.0",
"description": "Library to read incoming SMS in Android for Expo (React Native)",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 791f38e

Please sign in to comment.