Skip to content

Commit af53a26

Browse files
authored
Update native-modules-custom-events.md
1 parent 359ccd2 commit af53a26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

website/versioned_docs/version-0.80/the-new-architecture/native-modules-custom-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default (TurboModuleRegistry.get<Spec>(
7676
</TabItem>
7777
</Tabs>
7878

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`.
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`.
8080

8181
When the event is emitted, you expect for it to receive a parameter of type `string`.
8282

0 commit comments

Comments
 (0)