mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 22:47:02 +08:00
This change adds support for react-native-screens. Screens package makes it possible to use native primitives to render tabs container and its scenes such that they get properly mounted/unmounted when not visible. The support has only been added to `createBottomTabNavigator` as the material one renders its own container that's a part of a different package (react-native-tab-view).
90 lines
2.6 KiB
JSON
90 lines
2.6 KiB
JSON
{
|
|
"name": "react-navigation-tabs",
|
|
"version": "0.7.0",
|
|
"description": "Tab Navigation components for React Navigation",
|
|
"main": "dist/index.js",
|
|
"files": [
|
|
"dist/",
|
|
"createBottomTabNavigator.js",
|
|
"createMaterialTopTabNavigator.js"
|
|
],
|
|
"scripts": {
|
|
"test": "jest",
|
|
"flow": "flow",
|
|
"lint": "eslint .",
|
|
"precommit": "yarn lint && yarn flow && yarn test",
|
|
"build": "babel --no-babelrc --plugins=syntax-jsx,syntax-class-properties,syntax-object-rest-spread,transform-flow-strip-types src --out-dir dist --ignore '**/__tests__/**'",
|
|
"prepare": "yarn build"
|
|
},
|
|
"keywords": [
|
|
"react-native-component",
|
|
"react-component",
|
|
"react-native",
|
|
"ios",
|
|
"android",
|
|
"tab",
|
|
"swipe",
|
|
"scrollable",
|
|
"coverflow"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/react-navigation/react-navigation-tabs.git"
|
|
},
|
|
"author": "Satyajit Sahoo <satyajit.happy@gmail.com> (https://github.com/satya164/)",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/react-navigation/react-navigation-tabs/issues"
|
|
},
|
|
"homepage": "https://github.com/react-navigation/react-navigation-tabs#readme",
|
|
"dependencies": {
|
|
"hoist-non-react-statics": "^2.5.0",
|
|
"prop-types": "^15.6.1",
|
|
"react-lifecycles-compat": "^3.0.4",
|
|
"react-native-screens": "^1.0.0-alpha.11",
|
|
"react-native-tab-view": "^1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@expo/vector-icons": "^6.2.0",
|
|
"babel-cli": "^6.26.0",
|
|
"babel-jest": "^21.2.0",
|
|
"babel-plugin-syntax-class-properties": "^6.13.0",
|
|
"babel-plugin-syntax-jsx": "^6.18.0",
|
|
"babel-plugin-syntax-object-rest-spread": "^6.13.0",
|
|
"babel-plugin-transform-flow-strip-types": "^6.22.0",
|
|
"babel-preset-react-native": "^4.0.0",
|
|
"enzyme": "3.2.0",
|
|
"enzyme-adapter-react-16": "^1.1.0",
|
|
"enzyme-to-json": "^3.2.2",
|
|
"eslint": "^4.12.1",
|
|
"eslint-config-satya164": "^1.0.1",
|
|
"eslint-plugin-react-native-globals": "^0.1.0",
|
|
"flow-bin": "~0.67.0",
|
|
"husky": "^0.14.3",
|
|
"jest": "^21.2.1",
|
|
"prettier": "^1.8.2",
|
|
"react": "16.3.1",
|
|
"react-dom": "16.3.1",
|
|
"react-native": "~0.55.4",
|
|
"react-navigation": "^2.1.0",
|
|
"react-test-renderer": "16.2.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "*",
|
|
"react-native": "*",
|
|
"react-navigation": "^2.0.0"
|
|
},
|
|
"jest": {
|
|
"preset": "react-native",
|
|
"setupFiles": [
|
|
"<rootDir>/__setup__/enzyme.js"
|
|
],
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/example/node_modules"
|
|
],
|
|
"snapshotSerializers": [
|
|
"enzyme-to-json/serializer"
|
|
]
|
|
}
|
|
}
|