@react-native/codegen 0.77.0-nightly-20240915-afb40e9f2 → 0.77.0-nightly-20240917-51673e41a

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.
@@ -38,7 +38,7 @@ export type ModuleProps = $ReadOnly<{|
38
38
  |}>;
39
39
 
40
40
  export const Commands = codegenNativeCommands<{
41
- +hotspotUpdate: (ref: React.Ref<'RCTView'>, x: Int32, y: Int32) => void,
41
+ +hotspotUpdate: (ref: React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void,
42
42
  }>({
43
43
  supportedCommands: ['hotspotUpdate'],
44
44
  });
@@ -68,7 +68,7 @@ import type {ViewProps} from 'ViewPropTypes';
68
68
  import type {HostComponent} from 'react-native';
69
69
 
70
70
  interface NativeCommands {
71
- +hotspotUpdate: (viewRef: React.Ref<'RCTView'>, x: Int32, y: Int32) => void;
71
+ +hotspotUpdate: (viewRef: React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void;
72
72
  }
73
73
 
74
74
  export type ModuleProps = $ReadOnly<{|
@@ -145,7 +145,7 @@ import type {ViewProps} from 'ViewPropTypes';
145
145
  import type {HostComponent} from 'react-native';
146
146
 
147
147
  interface NativeCommands {
148
- +hotspotUpdate: (viewRef: ?React.Ref<'RCTView'>, x: Int32, y: Int32) => void;
148
+ +hotspotUpdate: (viewRef: ?React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void;
149
149
  }
150
150
 
151
151
  export type ModuleProps = $ReadOnly<{|
@@ -182,9 +182,9 @@ import type {ViewProps} from 'ViewPropTypes';
182
182
  import type {HostComponent} from 'react-native';
183
183
 
184
184
  interface NativeCommands {
185
- +hotspotUpdate: (viewRef: React.Ref<'RCTView'>, x: Int32, y: Int32) => void;
185
+ +hotspotUpdate: (viewRef: React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void;
186
186
  +scrollTo: (
187
- viewRef: React.Ref<'RCTView'>,
187
+ viewRef: React.RefSetter<'RCTView'>,
188
188
  y: Int32,
189
189
  animated: boolean,
190
190
  ) => void;
@@ -224,9 +224,9 @@ import type {ViewProps} from 'ViewPropTypes';
224
224
  import type {HostComponent} from 'react-native';
225
225
 
226
226
  interface NativeCommands {
227
- +hotspotUpdate: (viewRef: React.Ref<'RCTView'>, x: Int32, y: Int32) => void;
227
+ +hotspotUpdate: (viewRef: React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void;
228
228
  +scrollTo: (
229
- viewRef: React.Ref<'RCTView'>,
229
+ viewRef: React.RefSetter<'RCTView'>,
230
230
  y: Int32,
231
231
  animated: boolean,
232
232
  ) => void;
@@ -38,7 +38,7 @@ export type ModuleProps = $ReadOnly<{|
38
38
  |}>;
39
39
 
40
40
  export const Commands = codegenNativeCommands<{
41
- +hotspotUpdate: (ref: React.Ref<'RCTView'>, x: Int32, y: Int32) => void,
41
+ +hotspotUpdate: (ref: React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void,
42
42
  }>({
43
43
  supportedCommands: ['hotspotUpdate'],
44
44
  });
@@ -69,7 +69,7 @@ import type {ViewProps} from 'ViewPropTypes';
69
69
  import type {HostComponent} from 'react-native';
70
70
 
71
71
  interface NativeCommands {
72
- +hotspotUpdate: (viewRef: React.Ref<'RCTView'>, x: Int32, y: Int32) => void;
72
+ +hotspotUpdate: (viewRef: React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void;
73
73
  }
74
74
 
75
75
  export type ModuleProps = $ReadOnly<{|
@@ -148,7 +148,7 @@ import type {ViewProps} from 'ViewPropTypes';
148
148
  import type {HostComponent} from 'react-native';
149
149
 
150
150
  interface NativeCommands {
151
- +hotspotUpdate: (viewRef: ?React.Ref<'RCTView'>, x: Int32, y: Int32) => void;
151
+ +hotspotUpdate: (viewRef: ?React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void;
152
152
  }
153
153
 
154
154
  export type ModuleProps = $ReadOnly<{|
@@ -186,9 +186,9 @@ import type {ViewProps} from 'ViewPropTypes';
186
186
  import type {HostComponent} from 'react-native';
187
187
 
188
188
  interface NativeCommands {
189
- +hotspotUpdate: (viewRef: React.Ref<'RCTView'>, x: Int32, y: Int32) => void;
189
+ +hotspotUpdate: (viewRef: React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void;
190
190
  +scrollTo: (
191
- viewRef: React.Ref<'RCTView'>,
191
+ viewRef: React.RefSetter<'RCTView'>,
192
192
  y: Int32,
193
193
  animated: boolean,
194
194
  ) => void;
@@ -229,9 +229,9 @@ import type {ViewProps} from 'ViewPropTypes';
229
229
  import type {HostComponent} from 'react-native';
230
230
 
231
231
  interface NativeCommands {
232
- +hotspotUpdate: (viewRef: React.Ref<'RCTView'>, x: Int32, y: Int32) => void;
232
+ +hotspotUpdate: (viewRef: React.RefSetter<'RCTView'>, x: Int32, y: Int32) => void;
233
233
  +scrollTo: (
234
- viewRef: React.Ref<'RCTView'>,
234
+ viewRef: React.RefSetter<'RCTView'>,
235
235
  y: Int32,
236
236
  animated: boolean,
237
237
  ) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.77.0-nightly-20240915-afb40e9f2",
3
+ "version": "0.77.0-nightly-20240917-51673e41a",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {