Skip to content

Commit

Permalink
[fix]change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderXL committed Jan 14, 2025
1 parent 6f6774d commit c44dc0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/platform/patch/getDefaultOptions.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ const provideRelation = (instance) => {
}
}

const wrapRelationContext = (element, instance) => {
const wrapRelationProvider = (element, instance) => {
if (needRelationContext(instance.__mpxProxy.options)) {
return createElement(RelationsContext.Provider, {
value: provideRelation(instance)
Expand Down Expand Up @@ -522,9 +522,9 @@ export function getDefaultOptions ({ type, rawOptions = {}, currentInject }) {
const rootProps = getRootProps(props, validProps)
rootProps.style = Object.assign({}, root.props.style, rootProps.style)
// update root props
return wrapRelationContext(cloneElement(root, rootProps), instance)
return wrapRelationProvider(cloneElement(root, rootProps), instance)
}
return wrapRelationContext(root, instance)
return wrapRelationProvider(root, instance)
}))

if (rawOptions.options?.isCustomText) {
Expand Down

0 comments on commit c44dc0c

Please sign in to comment.