Add TypeScript declaration file and convert NavigationPlayground to TypeScript

This commit is contained in:
Jan Hesters
2018-11-23 14:02:31 +01:00
committed by Brent Vatne
parent e4902e98aa
commit eac5feb64e
121 changed files with 6875 additions and 12831 deletions

View File

@@ -2,42 +2,63 @@
"name": "NavigationPlayground",
"version": "0.1.0",
"private": true,
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"postinstall": "rm -rf node_modules/react-navigation/{.git,node_modules,examples}",
"start": "expo start",
"postinstall": "rm -rf node_modules/react-native-screens",
"start expo": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"test": "flow"
"test flow": "flow",
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"tsc": "tsc"
},
"dependencies": {
"expo": "^32.0.0",
"hoist-non-react-statics": "^3.0.1",
"invariant": "^2.2.4",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"react-native-iphone-x-helper": "^1.0.2",
"react-native-paper": "^2.1.3",
"react-navigation": "../..",
"react-navigation-header-buttons": "^0.0.4",
"react-navigation-material-bottom-tabs": "1.0.0"
"react": "16.6.1",
"react-native": "0.57.7",
"react-native-blur": "^3.2.2",
"react-native-gesture-handler": "kmagiera/react-native-gesture-handler#885858d",
"react-native-iphone-x-helper": "^1.2.0",
"react-native-vector-icons": "^6.1.0",
"react-navigation": "file:../..",
"react-navigation-header-buttons": "^2.1.1"
},
"devDependencies": {
"babel-jest": "^22.4.1",
"babel-plugin-transform-remove-console": "^6.9.0",
"flow-bin": "^0.67.0",
"jest": "^22.1.3",
"jest-expo": "^28.0.0",
"react-test-renderer": "16.3.1"
"@types/jest": "23.3.10",
"@types/react-native": "~0.57.38",
"@types/react-native-vector-icons": "^4.6.4",
"@types/react-test-renderer": "16.0.3",
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.50.0",
"react-test-renderer": "16.6.1",
"ts-jest": "^23.10.4",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.16.0",
"tslint-react": "^3.6.0",
"typescript": "3.2.1"
},
"jest": {
"preset": "jest-expo",
"preset": "react-native",
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js",
"^.+\\.tsx?$": "ts-jest"
},
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.jest.json"
}
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"web.js",
"ts",
"tsx",
"js",
"json",
"jsx",
"json",
"node"
],
"setupFiles": [
"./tests/setup.js"
]
}
}