Skip to content

Commit

Permalink
Handle manifest2
Browse files Browse the repository at this point in the history
  • Loading branch information
stri8ed committed Dec 5, 2022
1 parent 6fa402f commit ee305ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "expo-react-native-version-checker",
"version": "1.0.2",
"version": "1.0.3",
"description": "A version checker for react-native expo applications",
"main": "index.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/ExpoVersionInfo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Platform } from 'react-native';
import Constants from 'expo-constants';

const { manifest = {} } = Constants;
const manifest = Constants.manifest || Constants.manifest2?.extra.expoClient || {};
const {
version = null,
android: { versionCode = null, package: androidPackageName = null } = {},
Expand Down

0 comments on commit ee305ae

Please sign in to comment.