Skip to content

Commit

Permalink
Expose JSEngineResolutionAlgorithm into ReactHost interface
Browse files Browse the repository at this point in the history
Summary:
Expose JSEngineResolutionAlgorithm into ReactHost interface

This is another step to reduce visibility of ReactHostImpl class and rely only on ReactHost

changelog: [internal] internal

Reviewed By: philIip

Differential Revision: D50910031

fbshipit-source-id: da893ef0574c26bc90867f45b55d5b1e244885fc
  • Loading branch information
mdvacca authored and facebook-github-bot committed Nov 2, 2023
1 parent 9c135eb commit d5e1eb8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ interface ReactHost {
/** [ReactQueueConfiguration] for caller to post jobs in React Native threads */
val reactQueueConfiguration: ReactQueueConfiguration?

/** [JSEngineResolutionAlgorithm] used by this host. */
var jsEngineResolutionAlgorithm: JSEngineResolutionAlgorithm?

/** To be called when back button is pressed */
fun onBackPressed(): Boolean

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1746,12 +1746,15 @@ private void oldDestroyReactInstanceAndContext(final String callingMethod, final
}
}

public void setJSEngineResolutionAlgorithm(
@Nullable JSEngineResolutionAlgorithm jsEngineResolutionAlgorithm) {
mJSEngineResolutionAlgorithm = jsEngineResolutionAlgorithm;
@Nullable
@Override
public JSEngineResolutionAlgorithm getJsEngineResolutionAlgorithm() {
return mJSEngineResolutionAlgorithm;
}

public @Nullable JSEngineResolutionAlgorithm getJSEngineResolutionAlgorithm() {
return mJSEngineResolutionAlgorithm;
@Override
public void setJsEngineResolutionAlgorithm(
@Nullable JSEngineResolutionAlgorithm jsEngineResolutionAlgorithm) {
mJSEngineResolutionAlgorithm = jsEngineResolutionAlgorithm;
}
}

0 comments on commit d5e1eb8

Please sign in to comment.