Declaration
import { ToolbarItem } from 'swiftui-react-native';nonisolated struct ToolbarItem<ID, Content> where Content : ViewInitializers
2 SwiftUI initializers back <ToolbarItem>. The props you pass pick one.
<ToolbarItem
placement?: SwiftUI.ToolbarItemPlacement
>
children?: ReactNode
</ToolbarItem>nonisolated init(
placement: ToolbarItemPlacement = .automatic,
@ContentBuilder content: () -> Content
)placementSwiftUI.ToolbarItemPlacementWhich section of the toolbar the item should be placed in.
Default
`.automatic`childrenReactNodeContent. Strings become
Text; React Native views are laid out by Yoga and placed by SwiftUI.Swift
content: () -> Content
Also takes the common view props: modifiers, style and testID.
See also
More in Toolbars.
- DefaultToolbarItemA toolbar item that represents a system component.
- ToolbarItemGroupA model that represents a group of ToolbarItems which can be placed in the toolbar or navigation bar.
- ToolbarOverflowMenuThe overflow menu of a toolbar.
- ToolbarSpacerA standard space item in toolbars.
- ToolbarTitleMenuThe title menu of a toolbar.