安装
yarn add clwy-react-native-scrollable-tab-view @react-native-community/viewpager
使用
import React from 'react';
import { StyleSheet, Text } from 'react-native';
import ScrollableTabView, { ScrollableTabBar } from 'clwy-react-native-scrollable-tab-view';
import Colors from '../../constants/Colors';
const HomeScreen = () => {
return (
<ScrollableTabView
style={styles.container}
initialPage={0}
renderTabBar={() => <Scrollable...