// Type definitions for react-primitives 0.6 // Project: https://github.com/lelandrichardson/react-primitives // Definitions by: Ahmed Ghoneim // David Pett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import { ComponentType } from 'react'; import { Animated, Dimensions, Easing, Image, PixelRatio, PlatformOSType as RNPlatformOSType, StyleSheet, Text, TouchableOpacityProps, View } from 'react-native'; export const Touchable: ComponentType; // react-primitives also supports react-sketchapp and react-vr as platforms export type PlatformOSType = RNPlatformOSType | 'sketch' | 'vr'; export interface PlatformStatic { OS: PlatformOSType; Version: number | string; select(specifics: { [platform in PlatformOSType | 'default']?: T }): T; } export const Platform: PlatformStatic; export { Animated, Dimensions, Easing, Image, PixelRatio, StyleSheet, Text, View };