You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the `import type` statement, you are importing the `EventEmitter` type that is required to then add the `onKeyAdded` property.
79
+
With the `import type` statement, you are importing the `CodegenTypes` from `react-native`, which includes the `EventEmitter` type. This allows you to define the `onKeyAdded` property using `CodegenTypes.EventEmitter<KeyValuePair>`, specifying that the event will emit a payload of type `KeyValuePair`.
82
80
83
81
When the event is emitted, you expect for it to receive a parameter of type `string`.
With the `import type` statement, you are importing the `EventEmitter` type that is required to then add the `onKeyAdded` property.
79
+
With the `import type` statement, you are importing the `CodegenTypes` from `react-native`, which includes the `EventEmitter` type. This allows you to define the `onKeyAdded` property using `CodegenTypes.EventEmitter<KeyValuePair>`, specifying that the event will emit a payload of type `KeyValuePair`.
82
80
83
81
When the event is emitted, you expect for it to receive a parameter of type `string`.
0 commit comments