Interface: SpriteStudioViewProps
Defined in: packages/react-native-spritestudio/src/view/SpriteStudioView.tsx:37
The rest are a <View>'s own — testID, the accessibility props, pointerEvents, onLayout — and reach the view unchanged.
Extends
SsPlayerPropsOmit<ViewProps,"style"|"children">
Properties
accessibilityActions?
readonlyoptionalaccessibilityActions?: readonlyReadonly<{label?:string;name:string; }>[]
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:265
Provides an array of custom actions available for accessibility.
Inherited from
Omit.accessibilityActions
accessibilityElementsHidden?
readonlyoptionalaccessibilityElementsHidden?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:193
A value indicating whether the accessibility elements contained within this accessibility element are hidden.
Platform
ios
See https://reactnative.dev/docs/view#accessibilityElementsHidden
Inherited from
Omit.accessibilityElementsHidden
accessibilityHint?
readonlyoptionalaccessibilityHint?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:234
An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not obvious from the accessibility label.
See https://reactnative.dev/docs/view#accessibilityHint
Inherited from
Omit.accessibilityHint
accessibilityIgnoresInvertColors?
readonlyoptionalaccessibilityIgnoresInvertColors?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:149
Prevents view from being inverted if set to true and color inversion is turned on.
Platform
ios
Inherited from
Omit.accessibilityIgnoresInvertColors
accessibilityLabel?
readonlyoptionalaccessibilityLabel?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:225
Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.
See https://reactnative.dev/docs/view#accessibilitylabel
Inherited from
Omit.accessibilityLabel
accessibilityLabelledBy?
readonlyoptionalaccessibilityLabelledBy?:string|string[]
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:93
Identifies the element that labels the element it is applied to. When the assistive technology focuses on the component with this props, the text is read aloud. The value should should match the nativeID of the related element.
Platform
android
Inherited from
Omit.accessibilityLabelledBy
accessibilityLanguage?
readonlyoptionalaccessibilityLanguage?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:201
Indicates to the accessibility services that the UI component is in a specific language. The provided string should be formatted following the BCP 47 specification (https://www.rfc-editor.org/info/bcp47).
Platform
ios
Inherited from
Omit.accessibilityLanguage
accessibilityLargeContentTitle?
readonlyoptionalaccessibilityLargeContentTitle?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:176
When accessibilityShowsLargeContentViewer is set, this string will be used as title for the large content viewer.
Platform
ios
See https://reactnative.dev/docs/view#accessibilitylargecontenttitle
Inherited from
Omit.accessibilityLargeContentTitle
accessibilityLiveRegion?
readonlyoptionalaccessibilityLiveRegion?:"none"|"polite"|"assertive"
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:109
Indicates to accessibility services whether the user should be notified when this view changes. Works for Android API >= 19 only.
Platform
android
See https://reactnative.dev/docs/view#accessibilityliveregion
Inherited from
Omit.accessibilityLiveRegion
accessibilityRespondsToUserInteraction?
readonlyoptionalaccessibilityRespondsToUserInteraction?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:208
Blocks the user from interacting with the component through keyboard while still allowing screen reader to interact with it if this View is still accessible.
Platform
ios
Inherited from
Omit.accessibilityRespondsToUserInteraction
accessibilityRole?
readonlyoptionalaccessibilityRole?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:243
Indicates to accessibility services to treat UI component like a specific role.
Inherited from
Omit.accessibilityRole
accessibilityShowsLargeContentViewer?
readonlyoptionalaccessibilityShowsLargeContentViewer?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:168
A Boolean value that indicates whether or not to show the item in the large content viewer. Available on iOS 13.0+
Platform
ios
See https://reactnative.dev/docs/view#accessibilityshowslargecontentviewer
Inherited from
Omit.accessibilityShowsLargeContentViewer
accessibilityState?
readonlyoptionalaccessibilityState?:AccessibilityState
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:251
Indicates to accessibility services that UI Component is in a specific State.
Inherited from
Omit.accessibilityState
accessibilityValue?
readonlyoptionalaccessibilityValue?:Readonly<{max?:number;min?:number;now?:number;text?:string; }>
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:252
Inherited from
Omit.accessibilityValue
accessibilityViewIsModal?
readonlyoptionalaccessibilityViewIsModal?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:159
A value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver. Default is false.
Platform
ios
See https://reactnative.dev/docs/view#accessibilityviewismodal
Inherited from
Omit.accessibilityViewIsModal
accessible?
readonlyoptionalaccessible?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:217
When true, indicates that the view is an accessibility element. By default, all the touchable elements are accessible.
See https://reactnative.dev/docs/view#accessible
Inherited from
Omit.accessible
align?
optionalalign?:SsAlign
Defined in: packages/react-native-spritestudio/src/view/SpriteStudioView.tsx:52
Which point of the art lands on the matching point of the view.
animation?
optionalanimation?:string
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:34
Which animation in the pack. Omitted, the pack's first one plays.
Inherited from
aria-busy?
readonlyoptionalaria-busy?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:271
alias for accessibilityState
see https://reactnative.dev/docs/accessibility#accessibilitystate
Inherited from
Omit.aria-busy
aria-checked?
readonlyoptionalaria-checked?:boolean|"mixed"
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:272
Inherited from
Omit.aria-checked
aria-disabled?
readonlyoptionalaria-disabled?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:273
Inherited from
Omit.aria-disabled
aria-expanded?
readonlyoptionalaria-expanded?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:274
Inherited from
Omit.aria-expanded
aria-hidden?
readonlyoptionalaria-hidden?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:281
A value indicating whether the accessibility elements contained within this accessibility element are hidden.
See https://reactnative.dev/docs/view#aria-hidden
Inherited from
Omit.aria-hidden
aria-label?
readonlyoptionalaria-label?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:239
Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabelhttps://github.com/facebook/react-native/issues/34424
Inherited from
Omit.aria-label
aria-labelledby?
readonlyoptionalaria-labelledby?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:100
Identifies the element that labels the element it is applied to. When the assistive technology focuses on the component with this props, the text is read aloud. The value should should match the nativeID of the related element.
Platform
android
Inherited from
Omit.aria-labelledby
aria-live?
readonlyoptionalaria-live?:"polite"|"assertive"|"off"
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:118
Indicates to accessibility services whether the user should be notified when this view changes. Works for Android API >= 19 only.
Platform
android
See https://reactnative.dev/docs/view#accessibilityliveregion
Inherited from
Omit.aria-live
aria-modal?
readonlyoptionalaria-modal?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:184
The aria-modal attribute indicates content contained within a modal with aria-modal="true" should be accessible to the user. Default is false.
Platform
ios
Inherited from
Omit.aria-modal
aria-selected?
readonlyoptionalaria-selected?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:275
Inherited from
Omit.aria-selected
aria-valuemax?
readonlyoptionalaria-valuemax?:number
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:257
alias for accessibilityState It represents textual description of a component's value, or for range-based components, such as sliders and progress bars.
Inherited from
Omit.aria-valuemax
aria-valuemin?
readonlyoptionalaria-valuemin?:number
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:258
Inherited from
Omit.aria-valuemin
aria-valuenow?
readonlyoptionalaria-valuenow?:number
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:259
Inherited from
Omit.aria-valuenow
aria-valuetext?
readonlyoptionalaria-valuetext?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:260
Inherited from
Omit.aria-valuetext
children?
optionalchildren?:ReactNode
Defined in: packages/react-native-spritestudio/src/view/SpriteStudioView.tsx:74
Laid over the animation, covering the view's box — where a <SpriteStudioPartAnchor> finds its player. Mounted with the first drawable frame, not over the placeholder.
collapsable?
readonlyoptionalcollapsable?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:402
Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to false to disable this optimization and ensure that this View exists in the native view hierarchy.
Default
true
Inherited from
Omit.collapsable
collapsableChildren?
readonlyoptionalcollapsableChildren?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:410
Setting to false prevents direct children of the view from being removed from the native view hierarchy, similar to the effect of setting collapsable={false} on each child.
Default
true
Inherited from
Omit.collapsableChildren
experimental_accessibilityOrder?
readonlyoptionalexperimental_accessibilityOrder?:string[]
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:492
Defines the order in which descendant elements receive accessibility focus. The elements in the array represent nativeID values for the respective descendant elements.
Inherited from
Omit.experimental_accessibilityOrder
fit?
optionalfit?:SsFit
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:57
How the content box is scaled to the view. Default 'contain'.
Inherited from
flipX?
optionalflipX?:boolean
Defined in: packages/react-native-spritestudio/src/view/SpriteStudioView.tsx:53
flipY?
optionalflipY?:boolean
Defined in: packages/react-native-spritestudio/src/view/SpriteStudioView.tsx:54
focusable?
readonlyoptionalfocusable?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:312
Whether this View should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard.
Platform
android
Inherited from
Omit.focusable
frame?
optionalframe?:SsBox
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:59
The content box, in player-local units. Omitted, the animation's authored canvas.
Inherited from
frameScope?
optionalframeScope?:SsFrameScope
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:64
Measure the box instead of using the authored canvas — over this animation or the whole pack. Omitted, nothing is measured.
Inherited from
hasTVPreferredFocus?
readonlyoptionalhasTVPreferredFocus?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:271
Whether to force the Android TV focus engine to move focus to this view.
Platform
android
Deprecated
Use focusable instead
Inherited from
Omit.hasTVPreferredFocus
hitSlop?
readonlyoptionalhitSlop?:RectOrSize
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:464
This defines how far a touch event can start away from the view. Typical interface guidelines recommend touch targets that are at least 30 - 40 points/density-independent pixels.
The touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.
See https://reactnative.dev/docs/view#hitslop
Inherited from
Omit.hitSlop
id?
readonlyoptionalid?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:418
Used to locate this view from native classes. Has precedence over nativeID prop.
This disables the 'layout-only view removal' optimization for this view!
See https://reactnative.dev/docs/view#id
Inherited from
Omit.id
importantForAccessibility?
readonlyoptionalimportantForAccessibility?:"auto"|"yes"|"no"|"no-hide-descendants"
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:134
Controls how view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen. Works for Android only. See http://developer.android.com/reference/android/R.attr.html#importantForAccessibility for references.
Possible values: 'auto' - The system determines whether the view is important for accessibility - default (recommended). 'yes' - The view is important for accessibility. 'no' - The view is not important for accessibility. 'no-hide-descendants' - The view is not important for accessibility, nor are any of its descendant views.
Platform
android
See https://reactnative.dev/docs/view#importantforaccessibility
Inherited from
Omit.importantForAccessibility
loop?
optionalloop?:number
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:54
How many times to play. Default 0, which is forever.
Inherited from
measureFrames?
optionalmeasureFrames?:number
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:66
Caps the measuring walk. Default 0, which is one authored cycle.
Inherited from
nativeBackgroundAndroid?
readonlyoptionalnativeBackgroundAndroid?:AndroidDrawable
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:246
Inherited from
Omit.nativeBackgroundAndroid
nativeForegroundAndroid?
readonlyoptionalnativeForegroundAndroid?:AndroidDrawable
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:247
Inherited from
Omit.nativeForegroundAndroid
nativeID?
readonlyoptionalnativeID?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:434
Used to locate this view from native classes.
This disables the 'layout-only view removal' optimization for this view!
See https://reactnative.dev/docs/view#nativeid
Inherited from
Omit.nativeID
needsOffscreenAlphaCompositing?
readonlyoptionalneedsOffscreenAlphaCompositing?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:452
Whether this View needs to be rendered offscreen and composited with an alpha in order to preserve 100% correct colors and blending behavior. The default (false) falls back to drawing the component and its children with reduced alpha applied to the paint used to draw each element instead of rendering the full component offscreen and compositing it back with an alpha value. This default may be noticeable and undesired in the case where the View you are setting an opacity on has multiple overlapping elements (e.g. multiple overlapping Views, or text and a background).
Rendering offscreen to preserve correct alpha behavior is extremely expensive and hard to debug for non-native developers, which is why it is not turned on by default.
Default
false
Inherited from
Omit.needsOffscreenAlphaCompositing
nextFocusDown?
readonlyoptionalnextFocusDown?:number
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:278
Designates the next view to receive focus when the user navigates down. The value is the nativeID of the target view.
Platform
android
Inherited from
Omit.nextFocusDown
nextFocusForward?
readonlyoptionalnextFocusForward?:number
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:285
Designates the next view to receive focus when the user navigates forward. The value is the nativeID of the target view.
Platform
android
Inherited from
Omit.nextFocusForward
nextFocusLeft?
readonlyoptionalnextFocusLeft?:number
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:292
Designates the next view to receive focus when the user navigates left. The value is the nativeID of the target view.
Platform
android
Inherited from
Omit.nextFocusLeft
nextFocusRight?
readonlyoptionalnextFocusRight?:number
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:299
Designates the next view to receive focus when the user navigates right. The value is the nativeID of the target view.
Platform
android
Inherited from
Omit.nextFocusRight
nextFocusUp?
readonlyoptionalnextFocusUp?:number
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:306
Designates the next view to receive focus when the user navigates up. The value is the nativeID of the target view.
Platform
android
Inherited from
Omit.nextFocusUp
offset?
optionaloffset?:object
Defined in: packages/react-native-spritestudio/src/view/SpriteStudioView.tsx:59
Pixels from where fit/align put the art. Under fit="none" this is measured from the view's centre.
x
x:
number
y
y:
number
onAccessibilityAction?
readonlyoptionalonAccessibilityAction?: (event) =>unknown
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:27
When accessible is true, the system will try to invoke this function when the user performs an accessibility custom action.
Parameters
event
Returns
unknown
Inherited from
Omit.onAccessibilityAction
onAccessibilityEscape?
readonlyoptionalonAccessibilityEscape?: () =>unknown
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:60
When accessible is true, the system will invoke this function when the user performs the escape gesture.
See https://reactnative.dev/docs/view#onaccessibilityescape
Returns
unknown
Inherited from
Omit.onAccessibilityEscape
onAccessibilityTap?
readonlyoptionalonAccessibilityTap?: () =>unknown
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:34
When accessible is true, the system will try to invoke this function when the user performs accessibility tap gesture.
See https://reactnative.dev/docs/view#onaccessibilitytap
Returns
unknown
Inherited from
Omit.onAccessibilityTap
onAnimationChanged?
optionalonAnimationChanged?: (animation) =>void
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:105
A different animation was mounted. Not fired for a restart of the same one.
Parameters
animation
string
Returns
void
Inherited from
SsPlayerProps.onAnimationChanged
onAnimationFinished?
optionalonAnimationFinished?: (animation) =>void
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:99
The animation reached its end. Carries which one, since a player outlives them.
Parameters
animation
string
Returns
void
Inherited from
SsPlayerProps.onAnimationFinished
onAnimationLooped?
optionalonAnimationLooped?: (animation) =>void
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:101
The playhead crossed a loop boundary.
Parameters
animation
string
Returns
void
Inherited from
SsPlayerProps.onAnimationLooped
onAnimationStarted?
optionalonAnimationStarted?: (animation) =>void
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:103
Playback started from the beginning — not on resume.
Parameters
animation
string
Returns
void
Inherited from
SsPlayerProps.onAnimationStarted
onAudio?
optionalonAudio?: (event) =>void
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:83
Fires once per authored audio key the playhead crosses.
The event says what to play and where the file is — playing it is the app's job, since this package brings no audio stack of its own.
Parameters
event
Returns
void
Inherited from
onBlur?
readonlyoptionalonBlur?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:96
Callback that is called when the view is blurred.
Note: This will only be called if the view is focusable.
Parameters
event
Returns
void
Inherited from
Omit.onBlur
onBlurCapture?
readonlyoptionalonBlurCapture?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:97
Parameters
event
Returns
void
Inherited from
Omit.onBlurCapture
onClick?
readonlyoptionalonClick?: (event) =>unknown
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:330
The action to perform when this View is clicked on by a non-touch click, eg. enter key on a hardware keyboard.
Parameters
event
Returns
unknown
Platform
android
Inherited from
Omit.onClick
onClickCapture?
readonlyoptionalonClickCapture?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:68
Parameters
event
Returns
void
Inherited from
Omit.onClickCapture
onError?
optionalonError?: (error) =>void
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:97
Without one, the error goes to console.error rather than nowhere.
Parameters
error
unknown
Returns
void
Inherited from
onFocus?
readonlyoptionalonFocus?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:103
Callback that is called when the view is focused.
Note: This will only be called if the view is focusable.
Parameters
event
Returns
void
Inherited from
Omit.onFocus
onFocusCapture?
readonlyoptionalonFocusCapture?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:104
Parameters
event
Returns
void
Inherited from
Omit.onFocusCapture
onGotPointerCapture?
readonlyoptionalonGotPointerCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:85
Parameters
e
Returns
void
Inherited from
Omit.onGotPointerCapture
onGotPointerCaptureCapture?
readonlyoptionalonGotPointerCaptureCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:86
Parameters
e
Returns
void
Inherited from
Omit.onGotPointerCaptureCapture
onKeyDown?
readonlyoptionalonKeyDown?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:107
Parameters
event
Returns
void
Inherited from
Omit.onKeyDown
onKeyDownCapture?
readonlyoptionalonKeyDownCapture?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:108
Parameters
event
Returns
void
Inherited from
Omit.onKeyDownCapture
onKeyUp?
readonlyoptionalonKeyUp?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:109
Parameters
event
Returns
void
Inherited from
Omit.onKeyUp
onKeyUpCapture?
readonlyoptionalonKeyUpCapture?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:110
Parameters
event
Returns
void
Inherited from
Omit.onKeyUpCapture
onLayout?
readonlyoptionalonLayout?: (event) =>unknown
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:46
Invoked on mount and layout changes with:
{nativeEvent: { layout: {x, y, width, height}}}
This event is fired immediately once the layout has been calculated, but the new layout may not yet be reflected on the screen at the time the event is received, especially if a layout animation is in progress.
See https://reactnative.dev/docs/view#onlayout
Parameters
event
Returns
unknown
Inherited from
Omit.onLayout
onLoad?
optionalonLoad?: (player) =>void
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:95
The pack loaded and its animation is set up. Hands over the player, so reading getAnimationNames() needs neither the ref nor an effect.
Parameters
player
Returns
void
Inherited from
onLostPointerCapture?
readonlyoptionalonLostPointerCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:87
Parameters
e
Returns
void
Inherited from
Omit.onLostPointerCapture
onLostPointerCaptureCapture?
readonlyoptionalonLostPointerCaptureCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:88
Parameters
e
Returns
void
Inherited from
Omit.onLostPointerCaptureCapture
onMagicTap?
readonlyoptionalonMagicTap?: () =>unknown
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:53
When accessible is true, the system will invoke this function when the user performs the magic tap gesture.
See https://reactnative.dev/docs/view#onmagictap
Returns
unknown
Inherited from
Omit.onMagicTap
onMouseEnter?
readonlyoptionalonMouseEnter?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:63
Parameters
event
Returns
void
Inherited from
Omit.onMouseEnter
onMouseLeave?
readonlyoptionalonMouseLeave?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:64
Parameters
event
Returns
void
Inherited from
Omit.onMouseLeave
onMoveShouldSetResponder?
readonlyoptionalonMoveShouldSetResponder?: (e) =>boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:137
Does this view want to "claim" touch responsiveness? This is called for every touch move on the View when it is not the responder.
View.props.onMoveShouldSetResponder: (event) => [true | false], where event is a synthetic touch event as described above.
See https://reactnative.dev/docs/view#onmoveshouldsetresponder
Parameters
e
Returns
boolean
Inherited from
Omit.onMoveShouldSetResponder
onMoveShouldSetResponderCapture?
readonlyoptionalonMoveShouldSetResponderCapture?: (e) =>boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:147
If a parent View wants to prevent a child View from becoming responder on a move, it should have this handler which returns true.
View.props.onMoveShouldSetResponderCapture: (event) => [true | false], where event is a synthetic touch event as described above.
See https://reactnative.dev/docs/view#onMoveShouldsetrespondercapture
Parameters
e
Returns
boolean
Inherited from
Omit.onMoveShouldSetResponderCapture
onPointerCancel?
readonlyoptionalonPointerCancel?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:75
Parameters
e
Returns
void
Inherited from
Omit.onPointerCancel
onPointerCancelCapture?
readonlyoptionalonPointerCancelCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:76
Parameters
e
Returns
void
Inherited from
Omit.onPointerCancelCapture
onPointerDown?
readonlyoptionalonPointerDown?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:77
Parameters
e
Returns
void
Inherited from
Omit.onPointerDown
onPointerDownCapture?
readonlyoptionalonPointerDownCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:78
Parameters
e
Returns
void
Inherited from
Omit.onPointerDownCapture
onPointerEnter?
readonlyoptionalonPointerEnter?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:69
Parameters
event
Returns
void
Inherited from
Omit.onPointerEnter
onPointerEnterCapture?
readonlyoptionalonPointerEnterCapture?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:70
Parameters
event
Returns
void
Inherited from
Omit.onPointerEnterCapture
onPointerLeave?
readonlyoptionalonPointerLeave?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:71
Parameters
event
Returns
void
Inherited from
Omit.onPointerLeave
onPointerLeaveCapture?
readonlyoptionalonPointerLeaveCapture?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:72
Parameters
event
Returns
void
Inherited from
Omit.onPointerLeaveCapture
onPointerMove?
readonlyoptionalonPointerMove?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:73
Parameters
event
Returns
void
Inherited from
Omit.onPointerMove
onPointerMoveCapture?
readonlyoptionalonPointerMoveCapture?: (event) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:74
Parameters
event
Returns
void
Inherited from
Omit.onPointerMoveCapture
onPointerOut?
readonlyoptionalonPointerOut?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:83
Parameters
e
Returns
void
Inherited from
Omit.onPointerOut
onPointerOutCapture?
readonlyoptionalonPointerOutCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:84
Parameters
e
Returns
void
Inherited from
Omit.onPointerOutCapture
onPointerOver?
readonlyoptionalonPointerOver?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:81
Parameters
e
Returns
void
Inherited from
Omit.onPointerOver
onPointerOverCapture?
readonlyoptionalonPointerOverCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:82
Parameters
e
Returns
void
Inherited from
Omit.onPointerOverCapture
onPointerUp?
readonlyoptionalonPointerUp?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:79
Parameters
e
Returns
void
Inherited from
Omit.onPointerUp
onPointerUpCapture?
readonlyoptionalonPointerUpCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:80
Parameters
e
Returns
void
Inherited from
Omit.onPointerUpCapture
onResponderEnd?
readonlyoptionalonResponderEnd?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:190
Parameters
e
Returns
void
Inherited from
Omit.onResponderEnd
onResponderGrant?
readonlyoptionalonResponderGrant?: (e) =>boolean|void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:160
The View is now responding for touch events. This is the time to highlight and show the user what is happening.
View.props.onResponderGrant: (event) => {}, where event is a synthetic touch event as described above.
Return true from this callback to prevent any other native components from becoming responder until this responder terminates (Android-only).
See https://reactnative.dev/docs/view#onrespondergrant
Parameters
e
Returns
boolean | void
Inherited from
Omit.onResponderGrant
onResponderMove?
readonlyoptionalonResponderMove?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:169
The user is moving their finger.
View.props.onResponderMove: (event) => {}, where event is a synthetic touch event as described above.
See https://reactnative.dev/docs/view#onrespondermove
Parameters
e
Returns
void
Inherited from
Omit.onResponderMove
onResponderReject?
readonlyoptionalonResponderReject?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:179
Another responder is already active and will not release it to that View asking to be the responder.
View.props.onResponderReject: (event) => {}, where event is a synthetic touch event as described above.
See https://reactnative.dev/docs/view#onresponderreject
Parameters
e
Returns
void
Inherited from
Omit.onResponderReject
onResponderRelease?
readonlyoptionalonResponderRelease?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:188
Fired at the end of the touch.
View.props.onResponderRelease: (event) => {}, where event is a synthetic touch event as described above.
See https://reactnative.dev/docs/view#onresponderrelease
Parameters
e
Returns
void
Inherited from
Omit.onResponderRelease
onResponderStart?
readonlyoptionalonResponderStart?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:189
Parameters
e
Returns
void
Inherited from
Omit.onResponderStart
onResponderTerminate?
readonlyoptionalonResponderTerminate?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:202
The responder has been taken from the View. Might be taken by other views after a call to onResponderTerminationRequest, or might be taken by the OS without asking (e.g., happens with control center/ notification center on iOS)
View.props.onResponderTerminate: (event) => {}, where event is a synthetic touch event as described above.
See https://reactnative.dev/docs/view#onresponderterminate
Parameters
e
Returns
void
Inherited from
Omit.onResponderTerminate
onResponderTerminationRequest?
readonlyoptionalonResponderTerminationRequest?: (e) =>boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:212
Some other View wants to become responder and is asking this View to release its responder. Returning true allows its release.
View.props.onResponderTerminationRequest: (event) => {}, where event is a synthetic touch event as described above.
See https://reactnative.dev/docs/view#onresponderterminationrequest
Parameters
e
Returns
boolean
Inherited from
Omit.onResponderTerminationRequest
onSignal?
optionalonSignal?: (event) =>void
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:89
Fires once per active signal the playhead crosses — a named command and its parameters, for the app to dispatch. Signals switched off in the timeline are not reported.
Parameters
event
Returns
void
Inherited from
onStartShouldSetResponder?
readonlyoptionalonStartShouldSetResponder?: (e) =>boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:221
Does this view want to become responder on the start of a touch?
View.props.onStartShouldSetResponder: (event) => [true | false], where event is a synthetic touch event as described above.
See https://reactnative.dev/docs/view#onstartshouldsetresponder
Parameters
e
Returns
boolean
Inherited from
Omit.onStartShouldSetResponder
onStartShouldSetResponderCapture?
readonlyoptionalonStartShouldSetResponderCapture?: (e) =>boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:231
If a parent View wants to prevent a child View from becoming responder on a touch start, it should have this handler which returns true.
View.props.onStartShouldSetResponderCapture: (event) => [true | false], where event is a synthetic touch event as described above.
See https://reactnative.dev/docs/view#onstartshouldsetrespondercapture
Parameters
e
Returns
boolean
Inherited from
Omit.onStartShouldSetResponderCapture
onTouchCancel?
readonlyoptionalonTouchCancel?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:113
Parameters
e
Returns
void
Inherited from
Omit.onTouchCancel
onTouchCancelCapture?
readonlyoptionalonTouchCancelCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:114
Parameters
e
Returns
void
Inherited from
Omit.onTouchCancelCapture
onTouchEnd?
readonlyoptionalonTouchEnd?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:115
Parameters
e
Returns
void
Inherited from
Omit.onTouchEnd
onTouchEndCapture?
readonlyoptionalonTouchEndCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:116
Parameters
e
Returns
void
Inherited from
Omit.onTouchEndCapture
onTouchMove?
readonlyoptionalonTouchMove?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:117
Parameters
e
Returns
void
Inherited from
Omit.onTouchMove
onTouchMoveCapture?
readonlyoptionalonTouchMoveCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:118
Parameters
e
Returns
void
Inherited from
Omit.onTouchMoveCapture
onTouchStart?
readonlyoptionalonTouchStart?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:119
Parameters
e
Returns
void
Inherited from
Omit.onTouchStart
onTouchStartCapture?
readonlyoptionalonTouchStartCapture?: (e) =>void
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:120
Parameters
e
Returns
void
Inherited from
Omit.onTouchStartCapture
onUserData?
optionalonUserData?: (event) =>void
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:76
Fires once per authored user-data key the playhead crosses.
Parameters
event
Returns
void
Inherited from
parts?
optionalparts?:Readonly<Record<string,SsPartOverride>>
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:74
Per-part overrides on top of the animation, keyed by part name.
Declarative: a part dropped from the map goes back to the animation, so the prop describes the state rather than a history of calls.
Inherited from
placeholder?
optionalplaceholder?:ReactNode
Defined in: packages/react-native-spritestudio/src/view/SpriteStudioView.tsx:84
Shown until the first frame is drawable — the pack loaded and at least one texture registered.
Worth having as a prop rather than left to onLoad: until the textures land drawInto skips every batch, so the honest alternative is a blank rectangle that looks exactly like a broken pack. ssPreload is the way to make this window short enough not to matter.
playing?
optionalplaying?:boolean
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:50
Default true. false leaves it on its first frame.
Inherited from
pointerEvents?
readonlyoptionalpointerEvents?:"none"|"auto"|"box-none"|"box-only"
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:475
Controls whether the View can be the target of touch events.
'auto': The view can be the target of touch events.'none': The view is never the target of touch events.'box-none': The view is never the target of touch events but its subviews can be.'box-only': The view can be the target of touch events but its subviews cannot be.
Inherited from
Omit.pointerEvents
removeClippedSubviews?
readonlyoptionalremoveClippedSubviews?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:486
This is a special performance property exposed by RCTView and is useful for scrolling content when there are many subviews, most of which are offscreen. For this property to be effective, it must be applied to a view that contains many subviews that extend outside its bound. The subviews must also have overflow: hidden, as should the containing view (or one of its superviews).
See https://reactnative.dev/docs/view#removeclippedsubviews
Inherited from
Omit.removeClippedSubviews
renderToHardwareTextureAndroid?
readonlyoptionalrenderToHardwareTextureAndroid?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:264
Whether this View should render itself (and all of its children) into a single hardware texture on the GPU.
On Android, this is useful for animations and interactions that only modify opacity, rotation, translation and/or scale: in those cases, the view does not have to be redrawn and display lists do not need to be re-executed. The texture can be re-used and re-composited with different parameters. The downside is that this can use up limited video memory, so this prop should be set back to false at the end of the interaction/ animation.
Default
false
Platform
android
Inherited from
Omit.renderToHardwareTextureAndroid
role?
readonlyoptionalrole?:Role
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:247
Alias for accessibilityRole
Inherited from
Omit.role
scale?
optionalscale?:number
Defined in: packages/react-native-spritestudio/src/view/SpriteStudioView.tsx:61
Multiplier on top of the fit's scale.
screenReaderFocusable?
readonlyoptionalscreenReaderFocusable?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewAccessibility.d.ts:141
Enables the view to be screen reader focusable, not keyboard focusable. This has lower priority than focusable or accessible props.
Platform
android
Inherited from
Omit.screenReaderFocusable
shouldRasterizeIOS?
readonlyoptionalshouldRasterizeIOS?:boolean
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:389
Whether this View should be rendered as a bitmap before compositing.
On iOS, this is useful for animations and interactions that do not modify this component's dimensions nor its children; for example, when translating the position of a static view, rasterization allows the renderer to skip re-rendering the view frame and re-use the cached bitmap.
Rasterization incurs an offscreen drawing pass and the bitmap consumes memory. Test and measure when using this property.
Default
false
Platform
ios
Inherited from
Omit.shouldRasterizeIOS
source
source:
SsSource
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:30
The .ssab to play: a bundled asset, a file path or an http(s) URL.
Inherited from
speed?
optionalspeed?:number
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:52
Multiplier on the authored frame rate. Default 1.
Inherited from
style?
Defined in: packages/react-native-spritestudio/src/view/SpriteStudioView.tsx:68
Sized like an <Image> of the authored canvas where this leaves it open: with no width or height the view is the canvas, one unit to a point, and with one of them the canvas's aspect ratio sets the other.
tabIndex?
readonlyoptionaltabIndex?:0|-1
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:324
Indicates whether this View should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard. See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex for more details.
Supports the following values:
- 0 (View is focusable)
- -1 (View is not focusable)
Platform
android
Inherited from
Omit.tabIndex
testID?
readonlyoptionaltestID?:string
Defined in: node_modules/.pnpm/react-native@0.88.0_@babel+core@7.29.13_supports-color@8.1.1__@react-native+metro-confi_bb4928bf6d743a7f4250981571e281b2/node_modules/react-native/types_generated/Libraries/Components/View/ViewPropTypes.d.ts:426
Used to locate this view in end-to-end tests.
This disables the 'layout-only view removal' optimization for this view!
See https://reactnative.dev/docs/view#testid
Inherited from
Omit.testID
textures?
optionaltextures?:SsTextureSources
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:32
Atlases supplied by the caller. A pack's own are loaded either way.
Inherited from
transitionMs?
optionaltransitionMs?:number
Defined in: packages/react-native-spritestudio/src/view/useSpriteStudioPlayer.ts:48
Milliseconds to crossfade over when animation changes. Default 0, which switches outright — re-posing and heading out, as setAnimation does. Above 0 the change is a crossfade on track 0 instead: the outgoing animation fades while the incoming one plays from its head, and the other tracks stay. The first animation of a load is always set up outright.
With this prop in use, switch track 0 through animation rather than through the player's crossfade(0, …) / setTrackAnimation(0, …) / setAnimation: the prop only acts when it changes, so a clip reached behind its back is one the prop cannot then return from. The tracks above 0 are the player's alone.