Skip to content

Commit

Permalink
v4.0.0 #59
Browse files Browse the repository at this point in the history
  • Loading branch information
iRoachie authored Jun 30, 2019
2 parents 169d2f1 + 691cc2b commit 53f5c30
Show file tree
Hide file tree
Showing 45 changed files with 2,969 additions and 10,525 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@react-native-community",
"rules": {
"react-native/no-inline-styles": 0,
"eslint-comments/no-unused-disable": 0
}
}
46 changes: 0 additions & 46 deletions .eslintrc.js

This file was deleted.

70 changes: 0 additions & 70 deletions .flowconfig

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ install:
- yarn

script:
- yarn run flow && yarn run lint && yarn run test --runInBand
- yarn run check && yarn run lint && yarn run test --runInBand
- codecov
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,25 @@ import MaterialTabs from 'react-native-material-tabs';

## Available Props

| prop | default | type | description |
| ----------------- | ------------------------ | ------------- | ------------------------------------------------------------------------------------------------------- |
| barColor | #13897b | string | Color of the tab bar |
| indicatorColor | #fff | string | Color of the indicator |
| activeTextColor | #fff | string | Color of the text for the selected tab |
| inactiveTextColor | rgba(255, 255, 255, 0.7) | string | Color of the text for inactive tabs |
| items | none | array(string|element) | The headers for the individual tabs |
| selectedIndex | 0 | number | The index of current tab selected. Indexes are mapped to the items prop |
| scrollable | false | boolean | Option between having fixed tabs or scrollable tabs |
| textStyle | null | object(style) | Text style for tab titles |
| activeTextStyle | {} | object(style) | Optional text style for the selected tab |
| onChange | none | Function | Handler that's emitted every time the user presses a tab. You can use this to change the selected index |
| allowFontScaling | true | boolean | Specifies whether fonts should scale to respect Text Size accessibility settings |
| uppercase | true | boolean | Specifies whether to uppercase the tab labels |
| keyboardShouldPersistTaps | never | string | Specifies how the [ScrollView](https://facebook.github.io/react-native/docs/scrollview#keyboardshouldpersisttaps) should respond to taps while keyboard is open |
| prop | default | type | description |
| ------------------------- | ------------------------ | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| barColor | #13897b | string | Color of the tab bar |
| indicatorColor | #fff | string | Color of the indicator |
| activeTextColor | #fff | string | Color of the text for the selected tab |
| inactiveTextColor | rgba(255, 255, 255, 0.7) | string | Color of the text for inactive tabs |
| items | none | array(string | element) | The headers for the individual tabs |
| selectedIndex | 0 | number | The index of current tab selected. Indexes are mapped to the items prop |
| scrollable | false | boolean | Option between having fixed tabs or scrollable tabs |
| textStyle | null | object(style) | Text style for tab titles |
| activeTextStyle | {} | object(style) | Optional text style for the selected tab |
| onChange | none | Function | Handler that's emitted every time the user presses a tab. You can use this to change the selected index |
| allowFontScaling | true | boolean | Specifies whether fonts should scale to respect Text Size accessibility settings |
| uppercase | true | boolean | Specifies whether to uppercase the tab labels |
| keyboardShouldPersistTaps | never | string | Specifies how the [ScrollView](https://facebook.github.io/react-native/docs/scrollview#keyboardshouldpersisttaps) should respond to taps while keyboard is open |

## Example

![Alt Text](http://i.imgur.com/GYuMgMB.gif)
![Demo](https://user-images.githubusercontent.com/5962998/59991843-f2e43600-9616-11e9-913b-b8fb8a566d68.gif)

```jsx
import React from 'react';
Expand Down
80 changes: 0 additions & 80 deletions flow-typed/npm/babel-eslint_vx.x.x.js

This file was deleted.

32 changes: 0 additions & 32 deletions flow-typed/npm/babel-jest_vx.x.x.js

This file was deleted.

73 changes: 0 additions & 73 deletions flow-typed/npm/babel-preset-react-native_vx.x.x.js

This file was deleted.

Loading

0 comments on commit 53f5c30

Please sign in to comment.