如视 Five SDK
Preparing search index...
react
withFive
Function withFive
withFive
<
F
extends
FiveInjectionFeature
[]
>
(
features
:
F
,
)
:
<
P
extends
PropTypeOfFiveFeatures
<
F
>
,
C
extends
ComponentClass
<
P
,
any
>
>
(
Component
:
C
&
ComponentClass
<
P
,
any
>
,
)
=>
ForwardRefExoticComponent
<
PropsWithoutRef
<
Omit
<
P
,
"$five"
>
>
&
RefAttributes
<
Omit
<
InstanceType
<
C
>
,
|
"context"
|
"render"
|
"state"
|
"setState"
|
"componentDidMount"
|
"shouldComponentUpdate"
|
"componentWillUnmount"
|
"componentDidCatch"
|
"getSnapshotBeforeUpdate"
|
"componentDidUpdate"
|
"componentWillMount"
|
"UNSAFE_componentWillMount"
|
"componentWillReceiveProps"
|
"UNSAFE_componentWillReceiveProps"
|
"componentWillUpdate"
|
"UNSAFE_componentWillUpdate"
|
"forceUpdate"
|
"props"
|
"refs"
,
>
,
>
,
>
Type Parameters
F
extends
FiveInjectionFeature
[]
Parameters
features
:
F
Returns
<
P
extends
PropTypeOfFiveFeatures
<
F
>
,
C
extends
ComponentClass
<
P
,
any
>
>
(
Component
:
C
&
ComponentClass
<
P
,
any
>
,
)
=>
ForwardRefExoticComponent
<
PropsWithoutRef
<
Omit
<
P
,
"$five"
>
>
&
RefAttributes
<
Omit
<
InstanceType
<
C
>
,
|
"context"
|
"render"
|
"state"
|
"setState"
|
"componentDidMount"
|
"shouldComponentUpdate"
|
"componentWillUnmount"
|
"componentDidCatch"
|
"getSnapshotBeforeUpdate"
|
"componentDidUpdate"
|
"componentWillMount"
|
"UNSAFE_componentWillMount"
|
"componentWillReceiveProps"
|
"UNSAFE_componentWillReceiveProps"
|
"componentWillUpdate"
|
"UNSAFE_componentWillUpdate"
|
"forceUpdate"
|
"props"
|
"refs"
,
>
,
>
,
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
如视 Five SDK
Loading...