@callstack/react-native-brownfield 1.0.0-rc.2 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ internal import ReactAppDependencyProvider
5
5
 
6
6
  class ReactNativeBrownfieldDelegate: RCTDefaultReactNativeFactoryDelegate {
7
7
  var entryFile = "index"
8
+ var bundlePath = "main.jsbundle"
8
9
  // MARK: - RCTReactNativeFactoryDelegate Methods
9
10
 
10
11
  override func sourceURL(for bridge: RCTBridge) -> URL? {
@@ -48,7 +49,11 @@ class ReactNativeBrownfieldDelegate: RCTDefaultReactNativeFactoryDelegate {
48
49
  * Path to JavaScript bundle file.
49
50
  * Default value: "main.jsbundle"
50
51
  */
51
- @objc public var bundlePath: String = "main.jsbundle"
52
+ @objc public var bundlePath: String = "main.jsbundle" {
53
+ didSet {
54
+ delegate.bundlePath = bundlePath
55
+ }
56
+ }
52
57
  /**
53
58
  * React Native factory instance created when starting React Native.
54
59
  * Default value: nil
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@callstack/react-native-brownfield",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.1",
4
4
  "license": "MIT",
5
5
  "author": "Michal Chudziak <mike.chudziak@callstack.com>",
6
6
  "contributors": [