File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 11# react-native-tab-view-easy
22
3- react-native-tab-view-easy
3+ A cross-platform Tab View component for React Native based on ` react-native-tab-view ` with easier syntax
44
55## Installation
66
1212npm install react-native-tab-view-easy
1313```
1414
15+
16+ Now we need to install ` react-native-tab-view ` , ` react-native-gesture-handler ` and ` react-native-reanimated `
17+
18+ ``` sh
19+ yarn add react-native-tab-view react-native-gesture-handler react-native-reanimated
20+ ```
21+ OR
22+ ``` sh
23+ npm install react-native-tab-view react-native-gesture-handler react-native-reanimated
24+ ```
1525## Usage
1626
1727``` js
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export const TabView: React.FC = (props) => {
5757 ) ;
5858} ;
5959
60- export type RouteProp = {
60+ export type TabProps = {
6161 key ?: string ;
6262 icon ?: string ;
6363 title ?: string ;
@@ -66,6 +66,6 @@ export type RouteProp = {
6666 testID ?: string ;
6767} ;
6868
69- export const Tab : React . FC < RouteProp > = ( props ) => {
69+ export const Tab : React . FC < TabProps > = ( props ) => {
7070 return < View > { props . children } </ View > ;
7171} ;
You can’t perform that action at this time.
0 commit comments