Declaration
import { SubscriptionView } from 'swiftui-react-native';@frozen nonisolated struct SubscriptionView<PublisherType, Content> where PublisherType : Publisher, Content : View, PublisherType.Failure == NeverInitializers
One SwiftUI initializer backs <SubscriptionView>.
<SubscriptionView
content: ReactNode
publisher: { notification: string; } | { every: number; }
onPress: (arg0: unknown) => void
/>nonisolated init(
content: Content,
publisher: PublisherType,
action: @escaping (PublisherType.Output) -> Void
)content*ReactNodepublisher*{ notification: string; } | { every: number; }onPress*(arg0: unknown) => voidSwift
action: (PublisherType.Output) -> Void
Also takes the common view props: modifiers, style and testID.
Relationships
Conforms to
- View
See also
More in Controls.
- ButtonA control that initiates an action.
- ColorPickerA control used to select a color from the system color picker UI.
- DatePickerA control for selecting an absolute date.
- DisclosureGroupA view that shows or hides another content view, based on the state of a disclosure control.
- MultiDatePickerA control for picking multiple dates.
- OutlineGroupA structure that computes views and disclosure groups on demand from an underlying collection of tree-structured, identified data.
- PasteButtonA system button that reads items from the pasteboard and delivers it to a closure.
- PickerA control for selecting from a set of mutually exclusive values.
- SecureFieldA control into which people securely enter private text.
- SliderA control for selecting a value from a bounded linear range of values.
- StepperA control that performs increment and decrement actions.
- TableA container that presents rows of data arranged in one or more columns, optionally providing the ability to select one or more members.