chore: fix running on ci

This commit is contained in:
Satyajit Sahoo
2019-03-02 01:30:57 +01:00
parent 856f7f4036
commit 421207dab3
6 changed files with 669 additions and 856 deletions

View File

@@ -38,8 +38,8 @@ jobs:
- attach_workspace:
at: ~/project
- run: |
yarn run lint
yarn run flow
yarn lint
yarn flow check
unit-tests:
<<: *defaults
steps:

View File

@@ -1,3 +0,0 @@
/* eslint-disable import/no-commonjs */
module.exports = require('./dist/navigators/createBottomTabNavigator');

View File

@@ -1,3 +0,0 @@
/* eslint-disable import/no-commonjs */
module.exports = require('./dist/navigators/createMaterialTopTabNavigator');

View File

@@ -5,9 +5,7 @@
"main": "dist/index.js",
"files": [
"dist/",
"src/",
"createBottomTabNavigator.js",
"createMaterialTopTabNavigator.js"
"src/"
],
"react-native": "src/index.js",
"scripts": {
@@ -47,8 +45,8 @@
},
"devDependencies": {
"@expo/vector-icons": "^6.2.0",
"@react-navigation/core": "^3.0.0",
"@react-navigation/native": "^3.0.",
"@react-navigation/core": "^3.1.1",
"@react-navigation/native": "^3.1.5",
"babel-cli": "^6.26.0",
"babel-jest": "^21.2.0",
"babel-plugin-syntax-class-properties": "^6.13.0",

View File

@@ -66,8 +66,8 @@ export default class TabBarTop extends React.PureComponent<Props> {
// Prepend '-1', so there are always at least 2 items in inputRange
const inputRange = [-1, ...routes.map((x, i) => i)];
const outputRange = inputRange.map(
inputIndex => (inputIndex === index ? activeTintColor : inactiveTintColor)
const outputRange = inputRange.map(inputIndex =>
inputIndex === index ? activeTintColor : inactiveTintColor
);
const color = position.interpolate({
inputRange,

File diff suppressed because it is too large Load Diff