import * as React from 'react'; import { Animated, Dimensions, Easing, Image, PixelRatio, Platform, Text, Touchable, View, StyleSheet } from 'react-primitives'; const { Image: AnimatedImage } = Animated; const { width, height } = Dimensions.get('window'); const { width: screenWidth, height: screenHeight } = Dimensions.get('screen'); const styles = StyleSheet.create({ container: { height: screenHeight }, nav: { width: screenWidth, height: 20 }, image: { width, height: 100 }, text: { fontSize: 14 * PixelRatio.get() } }); interface State { opacity: Animated.Value; } export default class Component extends React.Component<{}, State> { state: State = { opacity: new Animated.Value(0) }; componentDidMount() { Animated.timing(this.state.opacity, { toValue: 1, duration: 10000, easing: Easing.cubic }).start(); if (Platform.OS === 'sketch') { console.log('The Platform is sketch'); } } render() { const { state: { opacity } } = this; return ( My Awesome App! Hii {Platform.OS === 'ios' && ( IOS Specific Text! )} undefined}> Touch me! Helloooooo Touch me too! ); } }