Skip to content

Commit

Permalink
Merge pull request #1748 from didi/fix-rn-provider
Browse files Browse the repository at this point in the history
feat: change the scope of Provider
  • Loading branch information
hiyuki authored Dec 9, 2024
2 parents 0ed6586 + 659d7d0 commit ed5a794
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/core/src/platform/patch/react/getDefaultOptions.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,16 +568,16 @@ export function getDefaultOptions ({ type, rawOptions = {}, currentInject }) {
ReactNative.Keyboard.isVisible() && ReactNative.Keyboard.dismiss()
}
},
createElement(Provider,
null,
createElement(RouteContext.Provider,
createElement(RouteContext.Provider,
{
value: currentPageId
},
createElement(IntersectionObserverContext.Provider,
{
value: currentPageId
value: intersectionObservers.current
},
createElement(IntersectionObserverContext.Provider,
{
value: intersectionObservers.current
},
createElement(Provider,
null,
createElement(defaultOptions,
{
navigation,
Expand All @@ -590,8 +590,8 @@ export function getDefaultOptions ({ type, rawOptions = {}, currentInject }) {
)
)
)
// todo custom portal host for active route
)
// todo custom portal host for active route
}
return Page
}
Expand Down

0 comments on commit ed5a794

Please sign in to comment.