Skip to content

Commit

Permalink
Update documentation of NativeModule methods (#39824)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #39824

Update documentation of NativeModule methods

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: cortinico, philIip

Differential Revision: D49930342

fbshipit-source-id: 69590a1ef122976711cad53ee784d44020290447
  • Loading branch information
mdvacca authored and facebook-github-bot committed Oct 9, 2023
1 parent 2add5d1 commit 6e895ed
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ interface NativeMethod {
@Nonnull
String getName();

/**
* This is called at the end of {@link CatalystApplicationFragment#createCatalystInstance()} after
* the CatalystInstance has been created, in order to initialize NativeModules that require the
* CatalystInstance or JS modules.
*/
/** This method is called after {@link ReactApplicationContext} has been created. */
void initialize();

/**
Expand All @@ -54,9 +50,9 @@ interface NativeMethod {
*
* @deprecated use {@link #invalidate()} instead.
*/
@Deprecated
@Deprecated(since = "Use invalidate method instead", forRemoval = true)
void onCatalystInstanceDestroy();

/** Allow NativeModule to clean up. Called before {CatalystInstance#onHostDestroy} */
/** Allow NativeModule to clean up. Called before React Native instance is destroyed. */
void invalidate();
}

0 comments on commit 6e895ed

Please sign in to comment.