Skip to content

Commit 9a3bc48

Browse files
committed
readme
1 parent b91e470 commit 9a3bc48

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

@@ -12,6 +12,16 @@ OR
1212
npm 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

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)