Skip to content

Commit 94b1a4b

Browse files
updated code for picking version from json file
1 parent d2fbd60 commit 94b1a4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ const { RNBranch, RNBranchEventEmitter } = NativeModules
55
import createBranchUniversalObject from './branchUniversalObject'
66
import BranchEvent from './BranchEvent'
77

8-
export const VERSION = '2.2.2'
8+
const packageFile = require('./../package.json')
9+
export const VERSION = packageFile.version
910

1011
export const AddToCartEvent = RNBranch.ADD_TO_CART_EVENT
1112
export const AddToWishlistEvent = RNBranch.ADD_TO_WISHLIST_EVENT

0 commit comments

Comments
 (0)