@fluentui-react-native/framework-base
v0.3.3
Published
Base types and utilities fluentui-react-native frameworks
Readme
@fluentui-react-native/framework-base
This package provides core implementations and types to support both the legacy and current frameworks.
The functionality in these packages is now exposed as part of this package.
Component Patterns
The shared patterns for rendering components, as well as the JSX handlers have been centralized in this package. More information can be found here.
Type Helpers
This package provides several TypeScript utility types:
PropsOf<TComponent>- Extract props from a React component typeFunctionComponent<TProps>- A function component type without the children handling complications of React.FCDirectComponent<TProps>- A function component marked for direct renderingPhasedComponent<TProps>- A component with two-phase rendering supportSlotFn<TProps>- Slot function type used in the composition frameworkFinalRender<TProps>- The final rendering signature for phased components
JSX Runtime
This package exports a custom JSX runtime at @fluentui-react-native/framework-base/jsx-runtime. Use it in your component files with:
/** @jsxImportSource @fluentui-react-native/framework-base */The custom runtime enables automatic element flattening for direct and phased components.
