242 lines
8.3 KiB
JSON
242 lines
8.3 KiB
JSON
{
|
|
"name": "react-native-screens",
|
|
"version": "4.16.0",
|
|
"description": "Native navigation primitives for your React Native app.",
|
|
"scripts": {
|
|
"submodules": "git submodule update --init --recursive && (cd react-navigation && yarn && yarn build && cd ../)",
|
|
"check-types": "tsc --noEmit",
|
|
"start": "react-native start",
|
|
"test:unit": "jest --passWithNoTests",
|
|
"format-js": "prettier --write --list-different './{src,Example}/**/*.{js,ts,tsx}'",
|
|
"format-android": "node ./scripts/format-android.js",
|
|
"format-ios-swift": "sh scripts/swift-format-helper.sh format",
|
|
"format-ios-cpp": "find ios/ -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.cpp\" -o -iname \"*.mm\" | xargs clang-format -i",
|
|
"format-ios": "yarn format-ios-swift && yarn format-ios-cpp",
|
|
"format-common": "find common/ -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
|
|
"format-cpp": "find cpp/ -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
|
|
"format-android-cpp": "find android/src/main/cpp -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
|
|
"format": "yarn format-js && yarn format-android && yarn format-ios && yarn format-common && yarn format-cpp && yarn format-android-cpp",
|
|
"lint-js": "eslint --ext '.js,.ts,.tsx' --fix src",
|
|
"lint-android": "./android/gradlew -p android spotlessCheck -q",
|
|
"lint-swift": "sh scripts/swift-format-helper.sh lint",
|
|
"lint": "yarn lint-js && yarn lint-android && yarn lint-swift",
|
|
"release": "yarn prepare && npm login && release-it",
|
|
"prepare": "bob build && husky install",
|
|
"architectures-consistency-check": "node ./scripts/codegen-check-consistency.js",
|
|
"sync-architectures": "node ./scripts/codegen-sync-archs.js"
|
|
},
|
|
"main": "lib/commonjs/index",
|
|
"module": "lib/module/index",
|
|
"react-native": "src/index",
|
|
"source": "src/index",
|
|
"types": "lib/typescript/index.d.ts",
|
|
"files": [
|
|
"src/",
|
|
"common/",
|
|
"lib/",
|
|
"native-stack/",
|
|
"gesture-handler/",
|
|
"reanimated/",
|
|
"private/",
|
|
"android/src/main/AndroidManifest.xml",
|
|
"android/src/main/java/",
|
|
"android/src/main/cpp/",
|
|
"android/src/main/jni/",
|
|
"android/src/main/res",
|
|
"android/src/fabric/",
|
|
"android/src/paper/",
|
|
"android/src/versioned/",
|
|
"android/build.gradle",
|
|
"android/CMakeLists.txt",
|
|
"ios/",
|
|
"cpp/",
|
|
"windows/",
|
|
"RNScreens.podspec",
|
|
"react-native.config.js",
|
|
"README.md",
|
|
"!**/__tests__",
|
|
"!android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/software-mansion/react-native-screens.git"
|
|
},
|
|
"author": {
|
|
"email": "krzys.magiera@gmail.com",
|
|
"name": "Krzysztof Magiera"
|
|
},
|
|
"license": "MIT",
|
|
"readmeFilename": "README.md",
|
|
"bugs": {
|
|
"url": "https://github.com/software-mansion/react-native-screens/issues"
|
|
},
|
|
"homepage": "https://github.com/software-mansion/react-native-screens#readme",
|
|
"dependencies": {
|
|
"react-freeze": "^1.0.0",
|
|
"react-native-is-edge-to-edge": "^1.2.1",
|
|
"warn-once": "^0.1.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "*",
|
|
"react-native": "*"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.25.2",
|
|
"@babel/eslint-parser": "7.22.15",
|
|
"@react-native-community/cli": "20.0.0-alpha.2",
|
|
"@react-native-community/cli-platform-android": "20.0.0-alpha.2",
|
|
"@react-native-community/cli-platform-ios": "20.0.0-alpha.2",
|
|
"@react-native/babel-preset": "0.81.1",
|
|
"@react-native/eslint-config": "0.81.1",
|
|
"@react-native/metro-config": "0.81.1",
|
|
"@react-native/typescript-config": "0.81.1",
|
|
"@react-navigation/native": "^5.8.0",
|
|
"@react-navigation/stack": "^5.10.0",
|
|
"@types/jest": "^29.5.13",
|
|
"@types/react": "^19.1.0",
|
|
"@types/react-test-renderer": "^19.1.0",
|
|
"@types/shelljs": "^0",
|
|
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
|
"@typescript-eslint/parser": "^6.5.0",
|
|
"eslint": "^8.56.0",
|
|
"eslint-config-prettier": "^8.10.0",
|
|
"eslint-config-standard": "^17.1.0",
|
|
"eslint-plugin-ft-flow": "^3.0.11",
|
|
"eslint-plugin-import": "^2.28.1",
|
|
"eslint-plugin-jest": "^27.9.0",
|
|
"eslint-plugin-n": "^16.0.2",
|
|
"eslint-plugin-promise": "^6.1.1",
|
|
"husky": "^8.0.3",
|
|
"jest": "^29.6.3",
|
|
"lint-staged": "^14.0.1",
|
|
"prettier": "^2.8.8",
|
|
"react": "^19.1.0",
|
|
"react-dom": "^19.1.0",
|
|
"react-native": "0.81.1",
|
|
"react-native-builder-bob": "^0.23.2",
|
|
"react-native-gesture-handler": "^2.28.0",
|
|
"react-native-reanimated": "^3.19.0",
|
|
"react-native-safe-area-context": "5.6.0",
|
|
"react-native-windows": "^0.64.8",
|
|
"react-test-renderer": "^19.1.0",
|
|
"release-it": "^15.6.0",
|
|
"shelljs": "^0.9.2",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"resolutions": {
|
|
"@types/react": "^18.2.72"
|
|
},
|
|
"lint-staged": {
|
|
"{src,Example}/**/*.{js,ts,tsx}": "yarn format-js",
|
|
"FabricExample/ios/**/*.swift": "yarn format-ios-swift",
|
|
"src/**/*.{js,ts,tsx}": "yarn lint-js",
|
|
"common/**/*.{h,cpp}": "yarn format-common",
|
|
"cpp/**/*.{h,cpp}": "yarn format-cpp",
|
|
"android/src/main/cpp/.{cpp, h}": "yarn format-android-cpp",
|
|
"android/**/*.kt": "yarn format-android",
|
|
"ios/**/*.{h,m,mm,cpp}": "yarn format-ios-cpp",
|
|
"src/fabric/*.ts": "yarn sync-architectures"
|
|
},
|
|
"react-native-builder-bob": {
|
|
"source": "src",
|
|
"output": "lib",
|
|
"targets": [
|
|
"commonjs",
|
|
"module",
|
|
[
|
|
"typescript",
|
|
{
|
|
"project": "tsconfig.build.json"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"eslintIgnore": [
|
|
"node_modules/",
|
|
"lib/"
|
|
],
|
|
"codegenConfig": {
|
|
"name": "rnscreens",
|
|
"type": "all",
|
|
"jsSrcsDir": "./src/fabric",
|
|
"android": {
|
|
"javaPackageName": "com.swmansion.rnscreens"
|
|
},
|
|
"ios": {
|
|
"componentProvider": {
|
|
"RNSStackScreen": "RNSStackScreenComponentView",
|
|
"RNSScreenStackHost": "RNSScreenStackHostComponentView",
|
|
"RNSBottomTabsScreen": "RNSBottomTabsScreenComponentView",
|
|
"RNSBottomTabs": "RNSBottomTabsHostComponentView",
|
|
"RNSFullWindowOverlay": "RNSFullWindowOverlay",
|
|
"RNSModalScreen": "RNSModalScreen",
|
|
"RNSScreenContainer": "RNSScreenContainerView",
|
|
"RNSScreenContentWrapper": "RNSScreenContentWrapper",
|
|
"RNSScreenFooter": "RNSScreenFooter",
|
|
"RNSScreen": "RNSScreenView",
|
|
"RNSScreenNavigationContainer": "RNSScreenNavigationContainerView",
|
|
"RNSScreenStackHeaderConfig": "RNSScreenStackHeaderConfig",
|
|
"RNSScreenStackHeaderSubview": "RNSScreenStackHeaderSubview",
|
|
"RNSScreenStack": "RNSScreenStackView",
|
|
"RNSSearchBar": "RNSSearchBar",
|
|
"RNSSplitViewHost": "RNSSplitViewHostComponentView",
|
|
"RNSSplitViewScreen": "RNSSplitViewScreenComponentView"
|
|
},
|
|
"components": {
|
|
"RNSFullWindowOverlay": {
|
|
"className": "RNSFullWindowOverlay"
|
|
},
|
|
"RNSModalScreen": {
|
|
"className": "RNSModalScreen"
|
|
},
|
|
"RNSScreenContainer": {
|
|
"className": "RNSScreenContainerView"
|
|
},
|
|
"RNSScreenContentWrapper": {
|
|
"className": "RNSScreenContentWrapper"
|
|
},
|
|
"RNSScreenFooter": {
|
|
"className": "RNSScreenFooter"
|
|
},
|
|
"RNSScreen": {
|
|
"className": "RNSScreenView"
|
|
},
|
|
"RNSScreenNavigationContainer": {
|
|
"className": "RNSScreenNavigationContainerView"
|
|
},
|
|
"RNSScreenStackHeaderConfig": {
|
|
"className": "RNSScreenStackHeaderConfig"
|
|
},
|
|
"RNSScreenStackHeaderSubview": {
|
|
"className": "RNSScreenStackHeaderSubview"
|
|
},
|
|
"RNSScreenStack": {
|
|
"className": "RNSScreenStackView"
|
|
},
|
|
"RNSSearchBar": {
|
|
"className": "RNSSearchBar"
|
|
},
|
|
"RNSStackScreen": {
|
|
"className": "RNSStackScreenComponentView"
|
|
},
|
|
"RNSScreenStackHost": {
|
|
"className": "RNSScreenStackHostComponentView"
|
|
},
|
|
"RNSBottomTabsScreen": {
|
|
"className": "RNSBottomTabsScreenComponentView"
|
|
},
|
|
"RNSBottomTabs": {
|
|
"className": "RNSBottomTabsHostComponentView"
|
|
},
|
|
"RNSSplitViewHost": {
|
|
"className": "RNSSplitViewHostComponentView"
|
|
},
|
|
"RNSSplitViewScreen": {
|
|
"className": "RNSSplitViewScreenComponentView"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"packageManager": "yarn@4.1.1"
|
|
}
|