Skip to content

Commit 53f5c30

Browse files
authored
v4.0.0 #59
2 parents 169d2f1 + 691cc2b commit 53f5c30

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2969
-10525
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage

.eslintrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "@react-native-community",
3+
"rules": {
4+
"react-native/no-inline-styles": 0,
5+
"eslint-comments/no-unused-disable": 0
6+
}
7+
}

.eslintrc.js

-46
This file was deleted.

.flowconfig

-70
This file was deleted.

.prettierignore

-1
This file was deleted.

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ install:
1212
- yarn
1313

1414
script:
15-
- yarn run flow && yarn run lint && yarn run test --runInBand
15+
- yarn run check && yarn run lint && yarn run test --runInBand
1616
- codecov

README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,25 @@ import MaterialTabs from 'react-native-material-tabs';
5252

5353
## Available Props
5454

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

7171
## Example
7272

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

7575
```jsx
7676
import React from 'react';

flow-typed/npm/babel-eslint_vx.x.x.js

-80
This file was deleted.

flow-typed/npm/babel-jest_vx.x.x.js

-32
This file was deleted.

flow-typed/npm/babel-preset-react-native_vx.x.x.js

-73
This file was deleted.

0 commit comments

Comments
 (0)