react-native-tvos 0.72.5-0 → 0.72.6-0

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.
Files changed (27) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +1 -1
  2. package/Libraries/vendor/emitter/EventEmitter.js +3 -1
  3. package/React/Base/RCTVersion.m +1 -1
  4. package/ReactAndroid/gradle.properties +1 -1
  5. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  6. package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +5 -0
  7. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  8. package/package.json +2 -2
  9. package/scripts/cocoapods/utils.rb +17 -11
  10. package/sdks/hermesc/linux64-bin/hermesc +0 -0
  11. package/sdks/hermesc/osx-bin/hermesc +0 -0
  12. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  13. package/template/Gemfile +2 -1
  14. package/template/package.json +1 -1
  15. package/React/Fabric/RCTThirdPartyFabricComponentsProvider.h +0 -29
  16. package/React/Fabric/RCTThirdPartyFabricComponentsProvider.mm +0 -29
  17. package/ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.java +0 -98
  18. package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +0 -29
  19. package/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp +0 -111
  20. package/ReactCommon/react/renderer/components/rncore/EventEmitters.h +0 -186
  21. package/ReactCommon/react/renderer/components/rncore/Props.cpp +0 -157
  22. package/ReactCommon/react/renderer/components/rncore/Props.h +0 -395
  23. package/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h +0 -257
  24. package/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp +0 -26
  25. package/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +0 -111
  26. package/ReactCommon/react/renderer/components/rncore/States.cpp +0 -18
  27. package/ReactCommon/react/renderer/components/rncore/States.h +0 -141
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 72,
15
- patch: 5,
15
+ patch: 6,
16
16
  prerelease: '0',
17
17
  };
@@ -109,7 +109,9 @@ export default class EventEmitter<TEventToArgsMap: {...}>
109
109
  Registration<$ElementType<TEventToArgsMap, TEvent>>,
110
110
  > = this._registry[eventType];
111
111
  if (registrations != null) {
112
- for (const registration of [...registrations]) {
112
+ // Copy `registrations` to take a snapshot when we invoke `emit`, in case
113
+ // registrations are added or removed when listeners are invoked.
114
+ for (const registration of Array.from(registrations)) {
113
115
  registration.listener.apply(registration.context, args);
114
116
  }
115
117
  }
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(72),
26
- RCTVersionPatch: @(5),
26
+ RCTVersionPatch: @(6),
27
27
  RCTVersionPrerelease: @"0",
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.72.5-0
1
+ VERSION_NAME=0.72.6-0
2
2
 
3
3
  # GROUP=com.facebook.react
4
4
  # Group for the TV repo
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 72,
20
- "patch", 5,
20
+ "patch", 6,
21
21
  "prerelease", "0");
22
22
  }
@@ -25,6 +25,7 @@ import com.facebook.react.modules.blob.BlobModule;
25
25
  import com.facebook.react.modules.blob.FileReaderModule;
26
26
  import com.facebook.react.modules.camera.ImageStoreManager;
27
27
  import com.facebook.react.modules.clipboard.ClipboardModule;
28
+ import com.facebook.react.modules.devloading.DevLoadingModule;
28
29
  import com.facebook.react.modules.devtoolssettings.DevToolsSettingsManagerModule;
29
30
  import com.facebook.react.modules.dialog.DialogModule;
30
31
  import com.facebook.react.modules.fresco.FrescoModule;
@@ -72,6 +73,7 @@ import javax.inject.Provider;
72
73
  AppearanceModule.class,
73
74
  AppStateModule.class,
74
75
  BlobModule.class,
76
+ DevLoadingModule.class,
75
77
  FileReaderModule.class,
76
78
  ClipboardModule.class,
77
79
  DialogModule.class,
@@ -113,6 +115,8 @@ public class MainReactPackage extends TurboReactPackage implements ViewManagerOn
113
115
  return new AppStateModule(context);
114
116
  case BlobModule.NAME:
115
117
  return new BlobModule(context);
118
+ case DevLoadingModule.NAME:
119
+ return new DevLoadingModule(context);
116
120
  case FileReaderModule.NAME:
117
121
  return new FileReaderModule(context);
118
122
  case ClipboardModule.NAME:
@@ -371,6 +375,7 @@ public class MainReactPackage extends TurboReactPackage implements ViewManagerOn
371
375
  AppearanceModule.class,
372
376
  AppStateModule.class,
373
377
  BlobModule.class,
378
+ DevLoadingModule.class,
374
379
  FileReaderModule.class,
375
380
  ClipboardModule.class,
376
381
  DialogModule.class,
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 72;
20
- int32_t Patch = 5;
20
+ int32_t Patch = 6;
21
21
  std::string_view Prerelease = "0";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tvos",
3
- "version": "0.72.5-0",
3
+ "version": "0.72.6-0",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -92,7 +92,7 @@
92
92
  "abort-controller": "^3.0.0",
93
93
  "anser": "^1.4.9",
94
94
  "base64-js": "^1.1.2",
95
- "deprecated-react-native-prop-types": "4.1.0",
95
+ "deprecated-react-native-prop-types": "^4.2.3",
96
96
  "event-target-shim": "^5.0.1",
97
97
  "flow-enums-runtime": "^0.0.5",
98
98
  "invariant": "^2.2.4",
@@ -141,7 +141,7 @@ class ReactNativePodsUtils
141
141
  if self.is_using_xcode15_or_greter(:xcodebuild_manager => xcodebuild_manager)
142
142
  self.add_value_to_setting_if_missing(config, other_ld_flags_key, xcode15_compatibility_flags)
143
143
  else
144
- self.remove_value_to_setting_if_present(config, other_ld_flags_key, xcode15_compatibility_flags)
144
+ self.remove_value_from_setting_if_present(config, other_ld_flags_key, xcode15_compatibility_flags)
145
145
  end
146
146
  end
147
147
  project.save()
@@ -300,20 +300,26 @@ class ReactNativePodsUtils
300
300
 
301
301
  def self.add_value_to_setting_if_missing(config, setting_name, value)
302
302
  old_config = config.build_settings[setting_name]
303
- if !old_config.include?(value)
304
- config.build_settings[setting_name] << value
303
+ if old_config.is_a?(Array)
304
+ old_config = old_config.join(" ")
305
+ end
306
+
307
+ trimmed_value = value.strip()
308
+ if !old_config.include?(trimmed_value)
309
+ config.build_settings[setting_name] = "#{old_config.strip()} #{trimmed_value}".strip()
305
310
  end
306
311
  end
307
312
 
308
- def self.remove_value_to_setting_if_present(config, setting_name, value)
313
+ def self.remove_value_from_setting_if_present(config, setting_name, value)
309
314
  old_config = config.build_settings[setting_name]
310
- if old_config.include?(value)
311
- # Old config can be either an Array or a String
312
- if old_config.is_a?(Array)
313
- old_config = old_config.join(" ")
314
- end
315
- new_config = old_config.gsub(value, "")
316
- config.build_settings[setting_name] = new_config
315
+ if old_config.is_a?(Array)
316
+ old_config = old_config.join(" ")
317
+ end
318
+
319
+ trimmed_value = value.strip()
320
+ if old_config.include?(trimmed_value)
321
+ new_config = old_config.gsub(trimmed_value, "")
322
+ config.build_settings[setting_name] = new_config.strip()
317
323
  end
318
324
  end
319
325
 
Binary file
Binary file
Binary file
package/template/Gemfile CHANGED
@@ -3,4 +3,5 @@ source 'https://rubygems.org'
3
3
  # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
4
  ruby ">= 2.6.10"
5
5
 
6
- gem 'cocoapods', '~> 1.12'
6
+ gem 'cocoapods', '~> 1.13'
7
+ gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "expo": "^49.0.7",
15
15
  "react": "18.2.0",
16
- "react-native": "npm:react-native-tvos@0.72.5-0"
16
+ "react-native": "npm:react-native-tvos@0.72.6-0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.20.0",
@@ -1,29 +0,0 @@
1
-
2
- /*
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by GenerateRCTThirdPartyFabricComponentsProviderH
9
- */
10
-
11
- #pragma GCC diagnostic push
12
- #pragma GCC diagnostic ignored "-Wreturn-type-c-linkage"
13
-
14
- #import <React/RCTComponentViewProtocol.h>
15
-
16
- #ifdef __cplusplus
17
- extern "C" {
18
- #endif
19
-
20
- Class<RCTComponentViewProtocol> RCTThirdPartyFabricComponentsProvider(const char *name);
21
-
22
-
23
-
24
- #ifdef __cplusplus
25
- }
26
- #endif
27
-
28
- #pragma GCC diagnostic pop
29
-
@@ -1,29 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by GenerateRCTThirdPartyFabricComponentsProviderCpp
9
- */
10
-
11
- // OSS-compatibility layer
12
-
13
- #import "RCTThirdPartyFabricComponentsProvider.h"
14
-
15
- #import <string>
16
- #import <unordered_map>
17
-
18
- Class<RCTComponentViewProtocol> RCTThirdPartyFabricComponentsProvider(const char *name) {
19
- static std::unordered_map<std::string, Class (*)(void)> sFabricComponentsClassMap = {
20
-
21
- };
22
-
23
- auto p = sFabricComponentsClassMap.find(name);
24
- if (p != sFabricComponentsClassMap.end()) {
25
- auto classFunc = p->second;
26
- return classFunc();
27
- }
28
- return nil;
29
- }
@@ -1,98 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- package com.facebook.react;
9
-
10
- import android.view.KeyEvent;
11
- import android.view.View;
12
- import com.facebook.react.bridge.WritableMap;
13
- import com.facebook.react.bridge.WritableNativeMap;
14
- import com.facebook.react.common.MapBuilder;
15
- import java.util.Map;
16
-
17
- /** Responsible for dispatching events specific for hardware inputs. */
18
- public class ReactAndroidHWInputDeviceHelper {
19
-
20
- /**
21
- * Contains a mapping between handled KeyEvents and the corresponding navigation event that should
22
- * be fired when the KeyEvent is received.
23
- */
24
- private static final Map<Integer, String> KEY_EVENTS_ACTIONS =
25
- MapBuilder.<Integer, String>builder()
26
- .put(KeyEvent.KEYCODE_DPAD_CENTER, "select")
27
- .put(KeyEvent.KEYCODE_ENTER, "select")
28
- .put(KeyEvent.KEYCODE_SPACE, "select")
29
- .put(KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE, "playPause")
30
- .put(KeyEvent.KEYCODE_MEDIA_REWIND, "rewind")
31
- .put(KeyEvent.KEYCODE_MEDIA_FAST_FORWARD, "fastForward")
32
- .put(KeyEvent.KEYCODE_MEDIA_STOP, "stop")
33
- .put(KeyEvent.KEYCODE_MEDIA_NEXT, "next")
34
- .put(KeyEvent.KEYCODE_MEDIA_PREVIOUS, "previous")
35
- .put(KeyEvent.KEYCODE_DPAD_UP, "up")
36
- .put(KeyEvent.KEYCODE_DPAD_RIGHT, "right")
37
- .put(KeyEvent.KEYCODE_DPAD_DOWN, "down")
38
- .put(KeyEvent.KEYCODE_DPAD_LEFT, "left")
39
- .put(KeyEvent.KEYCODE_INFO, "info")
40
- .put(KeyEvent.KEYCODE_MENU, "menu")
41
- .build();
42
-
43
- /**
44
- * We keep a reference to the last focused view id so that we can send it as a target for key
45
- * events and be able to send a blur event when focus changes.
46
- */
47
- private int mLastFocusedViewId = View.NO_ID;
48
-
49
- private final ReactRootView mReactRootView;
50
-
51
- ReactAndroidHWInputDeviceHelper(ReactRootView mReactRootView) {
52
- this.mReactRootView = mReactRootView;
53
- }
54
-
55
- /** Called from {@link ReactRootView}. This is the main place the key events are handled. */
56
- public void handleKeyEvent(KeyEvent ev) {
57
- int eventKeyCode = ev.getKeyCode();
58
- int eventKeyAction = ev.getAction();
59
- if ((eventKeyAction == KeyEvent.ACTION_UP || eventKeyAction == KeyEvent.ACTION_DOWN)
60
- && KEY_EVENTS_ACTIONS.containsKey(eventKeyCode)) {
61
- dispatchEvent(KEY_EVENTS_ACTIONS.get(eventKeyCode), mLastFocusedViewId, eventKeyAction);
62
- }
63
- }
64
-
65
- /** Called from {@link ReactRootView} when focused view changes. */
66
- public void onFocusChanged(View newFocusedView) {
67
- if (mLastFocusedViewId == newFocusedView.getId()) {
68
- return;
69
- }
70
- if (mLastFocusedViewId != View.NO_ID) {
71
- dispatchEvent("blur", mLastFocusedViewId);
72
- }
73
- mLastFocusedViewId = newFocusedView.getId();
74
- dispatchEvent("focus", newFocusedView.getId());
75
- }
76
-
77
- /** Called from {@link ReactRootView} when the whole view hierarchy looses focus. */
78
- public void clearFocus() {
79
- if (mLastFocusedViewId != View.NO_ID) {
80
- dispatchEvent("blur", mLastFocusedViewId);
81
- }
82
- mLastFocusedViewId = View.NO_ID;
83
- }
84
-
85
- private void dispatchEvent(String eventType, int targetViewId) {
86
- dispatchEvent(eventType, targetViewId, -1);
87
- }
88
-
89
- private void dispatchEvent(String eventType, int targetViewId, int eventKeyAction) {
90
- WritableMap event = new WritableNativeMap();
91
- event.putString("eventType", eventType);
92
- event.putInt("eventKeyAction", eventKeyAction);
93
- if (targetViewId != View.NO_ID) {
94
- event.putInt("tag", targetViewId);
95
- }
96
- mReactRootView.sendEvent("onHWKeyEvent", event);
97
- }
98
- }
@@ -1,29 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateComponentDescriptorH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <react/renderer/components/rncore/ShadowNodes.h>
14
- #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
-
16
- namespace facebook {
17
- namespace react {
18
-
19
- using AndroidHorizontalScrollContentViewComponentDescriptor = ConcreteComponentDescriptor<AndroidHorizontalScrollContentViewShadowNode>;
20
- using AndroidSwipeRefreshLayoutComponentDescriptor = ConcreteComponentDescriptor<AndroidSwipeRefreshLayoutShadowNode>;
21
- using PullToRefreshViewComponentDescriptor = ConcreteComponentDescriptor<PullToRefreshViewShadowNode>;
22
- using AndroidDrawerLayoutComponentDescriptor = ConcreteComponentDescriptor<AndroidDrawerLayoutShadowNode>;
23
- using ActivityIndicatorViewComponentDescriptor = ConcreteComponentDescriptor<ActivityIndicatorViewShadowNode>;
24
- using UnimplementedNativeViewComponentDescriptor = ConcreteComponentDescriptor<UnimplementedNativeViewShadowNode>;
25
- using SwitchComponentDescriptor = ConcreteComponentDescriptor<SwitchShadowNode>;
26
- using TraceUpdateOverlayComponentDescriptor = ConcreteComponentDescriptor<TraceUpdateOverlayShadowNode>;
27
-
28
- } // namespace react
29
- } // namespace facebook
@@ -1,111 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterCpp.js
9
- */
10
-
11
- #include <react/renderer/components/rncore/EventEmitters.h>
12
-
13
- namespace facebook {
14
- namespace react {
15
-
16
-
17
-
18
-
19
- void AndroidSwipeRefreshLayoutEventEmitter::onRefresh(OnRefresh event) const {
20
- dispatchEvent("refresh", [](jsi::Runtime &runtime) {
21
- auto payload = jsi::Object(runtime);
22
-
23
- return payload;
24
- });
25
- }
26
- void PullToRefreshViewEventEmitter::onRefresh(OnRefresh event) const {
27
- dispatchEvent("refresh", [](jsi::Runtime &runtime) {
28
- auto payload = jsi::Object(runtime);
29
-
30
- return payload;
31
- });
32
- }
33
-
34
- void AndroidDrawerLayoutEventEmitter::onDrawerSlide(OnDrawerSlide event) const {
35
- dispatchEvent("drawerSlide", [event=std::move(event)](jsi::Runtime &runtime) {
36
- auto payload = jsi::Object(runtime);
37
- payload.setProperty(runtime, "offset", event.offset);
38
- return payload;
39
- });
40
- }
41
- void AndroidDrawerLayoutEventEmitter::onDrawerStateChanged(OnDrawerStateChanged event) const {
42
- dispatchEvent("drawerStateChanged", [event=std::move(event)](jsi::Runtime &runtime) {
43
- auto payload = jsi::Object(runtime);
44
- payload.setProperty(runtime, "drawerState", event.drawerState);
45
- return payload;
46
- });
47
- }
48
- void AndroidDrawerLayoutEventEmitter::onDrawerOpen(OnDrawerOpen event) const {
49
- dispatchEvent("drawerOpen", [](jsi::Runtime &runtime) {
50
- auto payload = jsi::Object(runtime);
51
-
52
- return payload;
53
- });
54
- }
55
- void AndroidDrawerLayoutEventEmitter::onDrawerClose(OnDrawerClose event) const {
56
- dispatchEvent("drawerClose", [](jsi::Runtime &runtime) {
57
- auto payload = jsi::Object(runtime);
58
-
59
- return payload;
60
- });
61
- }
62
-
63
-
64
- void SwitchEventEmitter::onChange(OnChange event) const {
65
- dispatchEvent("change", [event=std::move(event)](jsi::Runtime &runtime) {
66
- auto payload = jsi::Object(runtime);
67
- payload.setProperty(runtime, "value", event.value);
68
- payload.setProperty(runtime, "target", event.target);
69
- return payload;
70
- });
71
- }
72
- void AndroidSwitchEventEmitter::onChange(OnChange event) const {
73
- dispatchEvent("change", [event=std::move(event)](jsi::Runtime &runtime) {
74
- auto payload = jsi::Object(runtime);
75
- payload.setProperty(runtime, "value", event.value);
76
- payload.setProperty(runtime, "target", event.target);
77
- return payload;
78
- });
79
- }
80
-
81
- void ModalHostViewEventEmitter::onRequestClose(OnRequestClose event) const {
82
- dispatchEvent("requestClose", [](jsi::Runtime &runtime) {
83
- auto payload = jsi::Object(runtime);
84
-
85
- return payload;
86
- });
87
- }
88
- void ModalHostViewEventEmitter::onShow(OnShow event) const {
89
- dispatchEvent("show", [](jsi::Runtime &runtime) {
90
- auto payload = jsi::Object(runtime);
91
-
92
- return payload;
93
- });
94
- }
95
- void ModalHostViewEventEmitter::onDismiss(OnDismiss event) const {
96
- dispatchEvent("dismiss", [](jsi::Runtime &runtime) {
97
- auto payload = jsi::Object(runtime);
98
-
99
- return payload;
100
- });
101
- }
102
- void ModalHostViewEventEmitter::onOrientationChange(OnOrientationChange event) const {
103
- dispatchEvent("orientationChange", [event=std::move(event)](jsi::Runtime &runtime) {
104
- auto payload = jsi::Object(runtime);
105
- payload.setProperty(runtime, "orientation", toString(event.orientation));
106
- return payload;
107
- });
108
- }
109
-
110
- } // namespace react
111
- } // namespace facebook
@@ -1,186 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterH.js
9
- */
10
- #pragma once
11
-
12
- #include <react/renderer/components/view/ViewEventEmitter.h>
13
- #include <jsi/jsi.h>
14
-
15
- namespace facebook {
16
- namespace react {
17
-
18
- class JSI_EXPORT SafeAreaViewEventEmitter : public ViewEventEmitter {
19
- public:
20
- using ViewEventEmitter::ViewEventEmitter;
21
-
22
-
23
-
24
-
25
- };
26
- class JSI_EXPORT AndroidHorizontalScrollContentViewEventEmitter : public ViewEventEmitter {
27
- public:
28
- using ViewEventEmitter::ViewEventEmitter;
29
-
30
-
31
-
32
-
33
- };
34
- class JSI_EXPORT AndroidProgressBarEventEmitter : public ViewEventEmitter {
35
- public:
36
- using ViewEventEmitter::ViewEventEmitter;
37
-
38
-
39
-
40
-
41
- };
42
- class JSI_EXPORT AndroidSwipeRefreshLayoutEventEmitter : public ViewEventEmitter {
43
- public:
44
- using ViewEventEmitter::ViewEventEmitter;
45
-
46
- struct OnRefresh {
47
-
48
- };
49
-
50
- void onRefresh(OnRefresh value) const;
51
- };
52
- class JSI_EXPORT PullToRefreshViewEventEmitter : public ViewEventEmitter {
53
- public:
54
- using ViewEventEmitter::ViewEventEmitter;
55
-
56
- struct OnRefresh {
57
-
58
- };
59
-
60
- void onRefresh(OnRefresh value) const;
61
- };
62
- class JSI_EXPORT InputAccessoryEventEmitter : public ViewEventEmitter {
63
- public:
64
- using ViewEventEmitter::ViewEventEmitter;
65
-
66
-
67
-
68
-
69
- };
70
- class JSI_EXPORT AndroidDrawerLayoutEventEmitter : public ViewEventEmitter {
71
- public:
72
- using ViewEventEmitter::ViewEventEmitter;
73
-
74
- struct OnDrawerSlide {
75
- Float offset;
76
- };
77
-
78
- struct OnDrawerStateChanged {
79
- int drawerState;
80
- };
81
-
82
- struct OnDrawerOpen {
83
-
84
- };
85
-
86
- struct OnDrawerClose {
87
-
88
- };
89
-
90
- void onDrawerSlide(OnDrawerSlide value) const;
91
-
92
- void onDrawerStateChanged(OnDrawerStateChanged value) const;
93
-
94
- void onDrawerOpen(OnDrawerOpen value) const;
95
-
96
- void onDrawerClose(OnDrawerClose value) const;
97
- };
98
- class JSI_EXPORT ActivityIndicatorViewEventEmitter : public ViewEventEmitter {
99
- public:
100
- using ViewEventEmitter::ViewEventEmitter;
101
-
102
-
103
-
104
-
105
- };
106
- class JSI_EXPORT UnimplementedNativeViewEventEmitter : public ViewEventEmitter {
107
- public:
108
- using ViewEventEmitter::ViewEventEmitter;
109
-
110
-
111
-
112
-
113
- };
114
- class JSI_EXPORT SwitchEventEmitter : public ViewEventEmitter {
115
- public:
116
- using ViewEventEmitter::ViewEventEmitter;
117
-
118
- struct OnChange {
119
- bool value;
120
- int target;
121
- };
122
-
123
- void onChange(OnChange value) const;
124
- };
125
- class JSI_EXPORT AndroidSwitchEventEmitter : public ViewEventEmitter {
126
- public:
127
- using ViewEventEmitter::ViewEventEmitter;
128
-
129
- struct OnChange {
130
- bool value;
131
- int target;
132
- };
133
-
134
- void onChange(OnChange value) const;
135
- };
136
- class JSI_EXPORT TraceUpdateOverlayEventEmitter : public ViewEventEmitter {
137
- public:
138
- using ViewEventEmitter::ViewEventEmitter;
139
-
140
-
141
-
142
-
143
- };
144
- class JSI_EXPORT ModalHostViewEventEmitter : public ViewEventEmitter {
145
- public:
146
- using ViewEventEmitter::ViewEventEmitter;
147
-
148
- struct OnRequestClose {
149
-
150
- };
151
-
152
- struct OnShow {
153
-
154
- };
155
-
156
- struct OnDismiss {
157
-
158
- };
159
-
160
- enum class OnOrientationChangeOrientation {
161
- Portrait,
162
- Landscape
163
- };
164
-
165
- static char const *toString(const OnOrientationChangeOrientation value) {
166
- switch (value) {
167
- case OnOrientationChangeOrientation::Portrait: return "portrait";
168
- case OnOrientationChangeOrientation::Landscape: return "landscape";
169
- }
170
- }
171
-
172
- struct OnOrientationChange {
173
- OnOrientationChangeOrientation orientation;
174
- };
175
-
176
- void onRequestClose(OnRequestClose value) const;
177
-
178
- void onShow(OnShow value) const;
179
-
180
- void onDismiss(OnDismiss value) const;
181
-
182
- void onOrientationChange(OnOrientationChange value) const;
183
- };
184
-
185
- } // namespace react
186
- } // namespace facebook