mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-13 09:39:18 +08:00
chore: fix running on ci
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
/* eslint-disable import/no-commonjs */
|
||||
|
||||
module.exports = require('./dist/navigators/createBottomTabNavigator');
|
||||
@@ -1,3 +0,0 @@
|
||||
/* eslint-disable import/no-commonjs */
|
||||
|
||||
module.exports = require('./dist/navigators/createMaterialTopTabNavigator');
|
||||
@@ -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",
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user