react-native APIs
- View
- StyleSheet
- Text
- Platform
- TouchableOpacity
- ScrollView
- Image
- ViewStyle
- Dimensions
- StatusBar
- TextInput
- FlatList
- SafeAreaView
- TextStyle
- ActivityIndicator
- Alert
- StyleProp
- Animated
- Linking
- TouchableWithoutFeedback
- Button
- NativeModules
- KeyboardAvoidingView
- TextInputProps
- ViewProps
- Keyboard
- Easing
- ImageBackground
- TextProps
- LayoutChangeEvent
- NativeSyntheticEvent
- NativeEventEmitter
- Switch
- AppRegistry
- ImageStyle
- ImageSourcePropType
- TouchableOpacityProps
- Modal
- AppState
- RefreshControl
- TouchableHighlight
- BackHandler
- useWindowDimensions
- GestureResponderEvent
- AppStateStatus
- PixelRatio
- useColorScheme
- SectionList
- Pressable
- AsyncStorage
- UIManager
- I18nManager
- ImageProps
- LogBox
- FlatListProps
- LayoutRectangle
- findNodeHandle
- EmitterSubscription
- requireNativeComponent
- PermissionsAndroid
- InteractionManager
- ScrollViewProps
- TextInputFocusEventData
- Share
- ColorSchemeName
- ScaledSize
- Clipboard
- Insets
- NativeScrollEvent
- ListRenderItem
- LayoutAnimation
- TouchableNativeFeedback
- PanResponder
- SectionListData
- ListRenderItemInfo
- AccessibilityRole
- AccessibilityInfo
- ImageURISource
- ViewToken
- SectionListProps
- DeviceEventEmitter
- KeyboardEvent
- ActionSheetIOS
- processColor
- YellowBox
- DevSettings
- Slider
- ViewabilityConfig
- AccessibilityState
- EventSubscription
- Permission
- TextInputSelectionChangeEventData
- EasingFunction
- TouchableHighlightProps
- TextInputSubmitEditingEventData
- TextInputChangeEventData
- Appearance
- KeyboardTypeOptions
- AccessibilityEvent
- NativeScrollPoint
- ActionSheetIOSOptions
- HostComponent
- PlatformOSType
- ITheme
- IThemeColors
- IThemeFonts
- IThemeLayout
- IThemeUtils
- ViewPropTypes
- SectionListRenderItem
- NativeAppEventEmitter
- Picker
- VirtualizedList
- SectionListRenderItemInfo
- TextInputKeyPressEventData
- ShareAction
- ImageErrorEventData
- ProgressViewIOS
- ProgressBarAndroid
- RotateXTransform
- RotateYTransform
- PerpectiveTransform
- RotateTransform
- RotateZTransform
- ScaleTransform
- ScaleXTransform
- ScaleYTransform
- TranslateXTransform
- TranslateYTransform
- SkewXTransform
- SkewYTransform
- TransformsStyle
- NativeModulesStatic
- CheckBox
Other Related APIs
- react-native#View
- react-native#Animated
- react-native#Text
- react-native#Easing
- react-native#StyleSheet
- react-native#ViewProps
- react-native#RotateXTransform
- react-native#RotateYTransform
- react-native#RotateTransform
- react-native#RotateZTransform
- react-native#ScaleTransform
- react-native#ScaleXTransform
- react-native#ScaleYTransform
- react-native#TranslateXTransform
- react-native#TranslateYTransform
- react-native#SkewXTransform
- react-native#SkewYTransform
react-native#PerpectiveTransform TypeScript Examples
The following examples show how to use
react-native#PerpectiveTransform.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SmallTestCard.tsx From react-native-anchor-point with MIT License | 6 votes |
getTransform = () => {
// why perspective: 400 useless when put it at last
let transformValues: (
| PerpectiveTransform
| RotateTransform
| RotateXTransform
| RotateYTransform
| RotateZTransform
| ScaleTransform
| ScaleXTransform
| ScaleYTransform
| TranslateXTransform
| TranslateYTransform
| SkewXTransform
| SkewYTransform
)[] = [{perspective: 400}]
if (this.props.rotateX) {
transformValues.push({rotateX: this.props.rotateX})
}
if (this.props.rotateY) {
transformValues.push({rotateY: this.props.rotateY})
}
if (this.props.rotateZ) {
transformValues.push({rotateZ: this.props.rotateZ})
}
let transform = {
transform: transformValues,
}
return withAnchorPoint(transform, this.props.anchorPoint, {
width: CARD_WIDTH,
height: CARD_HEIGHT,
})
}
Example #2
Source File: TestCard.tsx From react-native-anchor-point with MIT License | 6 votes |
getTransform = () => {
// why perspective: 400 useless when put it at last
let transformValues:
(PerpectiveTransform
| RotateTransform
| RotateXTransform
| RotateYTransform
| RotateZTransform
| ScaleTransform
| ScaleXTransform
| ScaleYTransform
| TranslateXTransform
| TranslateYTransform
| SkewXTransform
| SkewYTransform)[] = [{ perspective: 400 }];
if (this.props.rotateX) {
transformValues.push({rotateX: this.props.rotateX})
}
if (this.props.rotateY) {
transformValues.push({rotateY: this.props.rotateY})
}
if (this.props.rotateZ) {
transformValues.push({rotateZ: this.props.rotateZ})
}
let transform = {
transform: transformValues,
};
return withAnchorPoint(transform, this.props.anchorPoint, { width: CARD_WIDTH, height: CARD_HEIGHT });
};