react-native-navigation 7.25.4-snapshot.574 → 7.25.4-snapshot.583

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.
@@ -18,6 +18,7 @@ export const NavigationButton = class extends Component<ButtonProps> {
18
18
  testID={button.testID}
19
19
  key={button.id}
20
20
  title={button.text || ''}
21
+ disabled={button.enabled === false}
21
22
  onPress={() =>
22
23
  button.enabled !== false &&
23
24
  events.invokeNavigationButtonPressed({
@@ -12,7 +12,7 @@ const NavigationButton = class extends react_1.Component {
12
12
  const { button, componentId } = this.props;
13
13
  if (button.component)
14
14
  return this.renderButtonComponent();
15
- return (react_1.default.createElement(react_native_1.Button, { testID: button.testID, key: button.id, title: button.text || '', onPress: () => button.enabled !== false &&
15
+ return (react_1.default.createElement(react_native_1.Button, { testID: button.testID, key: button.id, title: button.text || '', disabled: button.enabled === false, onPress: () => button.enabled !== false &&
16
16
  EventsStore_1.events.invokeNavigationButtonPressed({
17
17
  buttonId: button.id,
18
18
  componentId,
@@ -2,6 +2,20 @@
2
2
 
3
3
  @implementation RNNComponentRootView
4
4
 
5
+ - (instancetype)initWithBridge:(RCTBridge *)bridge
6
+ moduleName:(NSString *)moduleName
7
+ initialProperties:(NSDictionary *)initialProperties
8
+ eventEmitter:(RNNEventEmitter *)eventEmitter
9
+ reactViewReadyBlock:(RNNReactViewReadyCompletionBlock)reactViewReadyBlock {
10
+ self = [super initWithBridge:bridge
11
+ moduleName:moduleName
12
+ initialProperties:initialProperties
13
+ eventEmitter:eventEmitter
14
+ reactViewReadyBlock:reactViewReadyBlock];
15
+ [bridge.uiManager setAvailableSize:UIScreen.mainScreen.bounds.size forRootView:self];
16
+ return self;
17
+ }
18
+
5
19
  - (NSString *)componentType {
6
20
  return ComponentTypeScreen;
7
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-navigation",
3
- "version": "7.25.4-snapshot.574",
3
+ "version": "7.25.4-snapshot.583",
4
4
  "description": "React Native Navigation - truly native navigation for iOS and Android",
5
5
  "license": "MIT",
6
6
  "nativePackage": true,