1.0.3 ā€¢ Published 2 years ago

react-native-collapsible-component-with-tab-view v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

šŸ  Homepage

Dependency

yarn add react-native-reanimated

and setting refer under uri
(https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation)

and

yarn add react-native-redash

Install

npm i react-native-collapsible-component-with-tab-view

or

yarn add react-native-collapsible-component-with-tab-view

Run example

git clone https://github.com/Kwonkunkun/react-native-collapsible-component-with-tab-view.git

yarn

cd example & yarn & yarn ios or android

Usage

...
import { CollapsibleTabBar } from 'react-native-collapsible-component-with-tab-view'

const App = () => {
  return (
    <SafeAreaView>
      <CollapsibleTabBar
        collasibleComponent={
          <View
            style={{
              height: 100,
              alignItems: 'center',
              justifyContent: 'center',
              backgroundColor: 'rgba(255, 255, 200, 1)',
            }}
          >
            <Text>Collapse Section</Text>
          </View>
        }
        tabBarItemList={[
          {
            titleComponent: (
              <View style={{ padding: 20 }}>
                <Text>tab1</Text>
              </View>
            ),
            component: ({tab1Component},
          },
          {
            titleComponent: (
              <View style={{ padding: 20 }}>
                <Text>tab2</Text>
              </View>
            ),
            component: {tab1Component},
          },
        ]}
      />
    </SafeAreaView>
  )
}

Author

šŸ‘¤ KunwooKwon(kunwoo242@gmail.com)

Show your support

Give a ā­ļø if this project helped you!


This README was generated with ā¤ļø by readme-md-generator