import * as React from 'react'; import { Text, TextStyle, View, ViewStyle } from 'react-native'; import ScrollableTabView, { ScrollableTabBar, TabProps, DefaultTabBar } from 'react-native-scrollable-tab-view'; interface MyTextProps { style?: TextStyle; } const MyText: React.SFC> = (props) => ( {props.children} ); interface MyViewProps { style?: ViewStyle; } class MyView extends React.Component> { render() { return ( {this.props.children} ); } } const TabView1 = () => ( } > My favorite project favorite project ); const DefaultTabBarView2 = () => ( } > My favorite project favorite project );