Skip to content

Interface: SpriteStudioPartAnchorProps ​

Defined in: packages/react-native-spritestudio/src/view/SpriteStudioPartAnchor.tsx:9

Properties ​

children? ​

optional children?: ReactNode

Defined in: packages/react-native-spritestudio/src/view/SpriteStudioPartAnchor.tsx:25


partName ​

partName: string

Defined in: packages/react-native-spritestudio/src/view/SpriteStudioPartAnchor.tsx:11

The part to follow. An unknown name hides the children until it resolves.


player? ​

optional player?: SpriteStudioPlayer | null

Defined in: packages/react-native-spritestudio/src/view/SpriteStudioPartAnchor.tsx:16

Omitted, the player of the <SpriteStudioView> whose children this is in. Given, it wins — for an anchor laid over a view by hand.


rotation? ​

optional rotation?: boolean

Defined in: packages/react-native-spritestudio/src/view/SpriteStudioPartAnchor.tsx:18

Turn with the part. Default true.


scale? ​

optional scale?: boolean

Defined in: packages/react-native-spritestudio/src/view/SpriteStudioPartAnchor.tsx:23

Scale with the part. Default false: a follower is placed at the part, not sized by it — a name plate should not breathe with the chest.


style? ​

optional style?: StyleProp<ViewStyle>

Defined in: packages/react-native-spritestudio/src/view/SpriteStudioPartAnchor.tsx:24