Skip to content

Commit d1c1d1f

Browse files
committed
docs: add destructuring example for VersionCheck properties in README
1 parent 04e4a3d commit d1c1d1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ VersionCheck.buildNumber // "42"
2323
VersionCheck.packageName // "com.example.app"
2424
VersionCheck.installSource // "appstore" | "testflight" | "playstore" | undefined
2525

26+
// Or destructure properties
27+
const { version, buildNumber, packageName, installSource } = VersionCheck
28+
2629
// Check for updates
2730
if (await VersionCheck.needsUpdate()) {
2831
Linking.openURL(await VersionCheck.getStoreUrl())

0 commit comments

Comments
 (0)