Skip to content

Commit 29bb283

Browse files
authored
Merge pull request #54 from Mindinventory/docs/readme-update
feat(readme): update import statements for TabBar and TabsType
2 parents 284ae94 + 2b21dce commit 29bb283

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ yarn add @mindinventory/react-native-tab-bar-interaction
3535

3636
```js
3737

38-
import Tabbar from "@mindinventory/react-native-tab-bar-interaction";
38+
import {
39+
TabBar,
40+
TabsType,
41+
} from "@mindinventory/react-native-tab-bar-interaction";
3942
...
4043

4144
const tabs = [
@@ -69,7 +72,7 @@ const tabs = [
6972
...
7073

7174
return (
72-
<Tabbar
75+
<TabBar
7376
tabs={tabs}
7477
containerWidth={350}
7578
onTabChange={(tab: TabsType, index: number) => console.log('Tab changed')}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mindinventory/react-native-tab-bar-interaction",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "A tabbar component for React Native",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

0 commit comments

Comments
 (0)