Skip to content

Commit

Permalink
Update documnetation of TurboModule.invalidate() (#38854)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #38854

Update documnetation of TurboModule.invalidate()

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D48130527

fbshipit-source-id: 0ebedaad603beba646f9ad4f047492e88b5f54a0
  • Loading branch information
mdvacca authored and facebook-github-bot committed Aug 8, 2023
1 parent 1d87279 commit fc85b60
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ interface TurboModule {
/** Initialize the TurboModule. */
fun initialize()

/** Called before React Native is torn down. Clean up after the TurboModule. */
/**
* Called during the turn down process of ReactHost. This method is called before React Native is
* stopped. Override this method to clean up resources used by the TurboModule.
*/
fun invalidate()
}

0 comments on commit fc85b60

Please sign in to comment.