@amazon-devices/react-native-screens 2.0.1758683737 → 2.0.9000000000

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/SystemBundles/{8f5a820b958535e533acb38dbc0c72c1837721b9db075f4a1740e42b9fee3910.bundle → 3d72c1ccdc1866604203e2067a94f7ab2c45408da644bb242aa980ffea58a74d.bundle} +1149 -1627
  2. package/SystemBundles/3d72c1ccdc1866604203e2067a94f7ab2c45408da644bb242aa980ffea58a74d.map +10181 -0
  3. package/SystemModules/amzn__react-native-screens.private.modules.txt +39 -40
  4. package/THIRD_PARTY_NOTICES.txt +1 -684
  5. package/kepler-compatibility.json +1 -3
  6. package/lib/commonjs/TransitionProgressContext.js +1 -1
  7. package/lib/commonjs/TransitionProgressContext.js.map +1 -1
  8. package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js +1 -1
  9. package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
  10. package/lib/commonjs/fabric/ScreenContainerNativeComponent.js +1 -1
  11. package/lib/commonjs/fabric/ScreenContainerNativeComponent.js.map +1 -1
  12. package/lib/commonjs/fabric/ScreenNativeComponent.js +4 -2
  13. package/lib/commonjs/fabric/ScreenNativeComponent.js.map +1 -1
  14. package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js +1 -1
  15. package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
  16. package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js +1 -1
  17. package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
  18. package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js +1 -1
  19. package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
  20. package/lib/commonjs/fabric/ScreenStackNativeComponent.js +1 -1
  21. package/lib/commonjs/fabric/ScreenStackNativeComponent.js.map +1 -1
  22. package/lib/commonjs/fabric/SearchBarNativeComponent.js +1 -1
  23. package/lib/commonjs/fabric/SearchBarNativeComponent.js.map +1 -1
  24. package/lib/commonjs/index.js +3 -2
  25. package/lib/commonjs/index.js.map +1 -1
  26. package/lib/commonjs/index.native.js +6 -4
  27. package/lib/commonjs/index.native.js.map +1 -1
  28. package/lib/commonjs/native-stack/index.js +1 -1
  29. package/lib/commonjs/native-stack/index.js.map +1 -1
  30. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +3 -3
  31. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  32. package/lib/commonjs/native-stack/types.js.map +1 -1
  33. package/lib/commonjs/native-stack/utils/AnimatedHeaderHeightContext.js +1 -1
  34. package/lib/commonjs/native-stack/utils/AnimatedHeaderHeightContext.js.map +1 -1
  35. package/lib/commonjs/native-stack/utils/HeaderHeightContext.js +1 -1
  36. package/lib/commonjs/native-stack/utils/HeaderHeightContext.js.map +1 -1
  37. package/lib/commonjs/native-stack/utils/SafeAreaProviderCompat.js +1 -1
  38. package/lib/commonjs/native-stack/utils/SafeAreaProviderCompat.js.map +1 -1
  39. package/lib/commonjs/native-stack/utils/getDefaultHeaderHeight.js.map +1 -1
  40. package/lib/commonjs/native-stack/utils/useAnimatedHeaderHeight.js +2 -2
  41. package/lib/commonjs/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -1
  42. package/lib/commonjs/native-stack/utils/useBackPressSubscription.js +1 -1
  43. package/lib/commonjs/native-stack/utils/useBackPressSubscription.js.map +1 -1
  44. package/lib/commonjs/native-stack/utils/useHeaderHeight.js +2 -2
  45. package/lib/commonjs/native-stack/utils/useHeaderHeight.js.map +1 -1
  46. package/lib/commonjs/native-stack/views/FontProcessor.js +1 -1
  47. package/lib/commonjs/native-stack/views/FontProcessor.js.map +1 -1
  48. package/lib/commonjs/native-stack/views/HeaderConfig.js +1 -1
  49. package/lib/commonjs/native-stack/views/HeaderConfig.js.map +1 -1
  50. package/lib/commonjs/native-stack/views/NativeStackView.js +3 -3
  51. package/lib/commonjs/native-stack/views/NativeStackView.js.map +1 -1
  52. package/lib/commonjs/reanimated/ReanimatedHeaderHeightContext.js +1 -1
  53. package/lib/commonjs/reanimated/ReanimatedHeaderHeightContext.js.map +1 -1
  54. package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js +3 -3
  55. package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
  56. package/lib/commonjs/reanimated/ReanimatedScreen.js +2 -2
  57. package/lib/commonjs/reanimated/ReanimatedScreen.js.map +1 -1
  58. package/lib/commonjs/reanimated/ReanimatedScreenProvider.js +4 -4
  59. package/lib/commonjs/reanimated/ReanimatedScreenProvider.js.map +1 -1
  60. package/lib/commonjs/reanimated/ReanimatedTransitionProgressContext.js +1 -1
  61. package/lib/commonjs/reanimated/ReanimatedTransitionProgressContext.js.map +1 -1
  62. package/lib/commonjs/reanimated/index.js +1 -1
  63. package/lib/commonjs/reanimated/index.js.map +1 -1
  64. package/lib/commonjs/reanimated/useReanimatedHeaderHeight.js +2 -2
  65. package/lib/commonjs/reanimated/useReanimatedHeaderHeight.js.map +1 -1
  66. package/lib/commonjs/reanimated/useReanimatedTransitionProgress.js +2 -2
  67. package/lib/commonjs/reanimated/useReanimatedTransitionProgress.js.map +1 -1
  68. package/lib/commonjs/types.js.map +1 -1
  69. package/lib/commonjs/useTransitionProgress.js +2 -2
  70. package/lib/commonjs/useTransitionProgress.js.map +1 -1
  71. package/lib/commonjs/utils.js.map +1 -1
  72. package/lib/module/TransitionProgressContext.js.map +1 -1
  73. package/lib/module/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
  74. package/lib/module/fabric/ScreenContainerNativeComponent.js.map +1 -1
  75. package/lib/module/fabric/ScreenNativeComponent.js +3 -1
  76. package/lib/module/fabric/ScreenNativeComponent.js.map +1 -1
  77. package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
  78. package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
  79. package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
  80. package/lib/module/fabric/ScreenStackNativeComponent.js.map +1 -1
  81. package/lib/module/fabric/SearchBarNativeComponent.js.map +1 -1
  82. package/lib/module/index.js +2 -1
  83. package/lib/module/index.js.map +1 -1
  84. package/lib/module/index.native.js +5 -3
  85. package/lib/module/index.native.js.map +1 -1
  86. package/lib/module/native-stack/index.js.map +1 -1
  87. package/lib/module/native-stack/navigators/createNativeStackNavigator.js +1 -1
  88. package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  89. package/lib/module/native-stack/types.js.map +1 -1
  90. package/lib/module/native-stack/utils/AnimatedHeaderHeightContext.js.map +1 -1
  91. package/lib/module/native-stack/utils/HeaderHeightContext.js.map +1 -1
  92. package/lib/module/native-stack/utils/SafeAreaProviderCompat.js.map +1 -1
  93. package/lib/module/native-stack/utils/getDefaultHeaderHeight.js.map +1 -1
  94. package/lib/module/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -1
  95. package/lib/module/native-stack/utils/useBackPressSubscription.js.map +1 -1
  96. package/lib/module/native-stack/utils/useHeaderHeight.js.map +1 -1
  97. package/lib/module/native-stack/views/FontProcessor.js.map +1 -1
  98. package/lib/module/native-stack/views/HeaderConfig.js.map +1 -1
  99. package/lib/module/native-stack/views/NativeStackView.js +1 -1
  100. package/lib/module/native-stack/views/NativeStackView.js.map +1 -1
  101. package/lib/module/reanimated/ReanimatedHeaderHeightContext.js.map +1 -1
  102. package/lib/module/reanimated/ReanimatedNativeStackScreen.js +1 -1
  103. package/lib/module/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
  104. package/lib/module/reanimated/ReanimatedScreen.js +1 -1
  105. package/lib/module/reanimated/ReanimatedScreen.js.map +1 -1
  106. package/lib/module/reanimated/ReanimatedScreenProvider.js +3 -3
  107. package/lib/module/reanimated/ReanimatedScreenProvider.js.map +1 -1
  108. package/lib/module/reanimated/ReanimatedTransitionProgressContext.js.map +1 -1
  109. package/lib/module/reanimated/index.js.map +1 -1
  110. package/lib/module/reanimated/useReanimatedHeaderHeight.js.map +1 -1
  111. package/lib/module/reanimated/useReanimatedTransitionProgress.js.map +1 -1
  112. package/lib/module/types.js.map +1 -1
  113. package/lib/module/useTransitionProgress.js.map +1 -1
  114. package/lib/module/utils.js.map +1 -1
  115. package/package.json +1 -1
  116. package/src/fabric/ScreenNativeComponent.ts +2 -0
  117. package/src/index.native.tsx +2 -0
  118. package/src/index.tsx +1 -0
  119. package/SystemBundles/8f5a820b958535e533acb38dbc0c72c1837721b9db075f4a1740e42b9fee3910.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["React","TransitionProgressContext","useTransitionProgress","progress","useContext","undefined","Error"],"sources":["useTransitionProgress.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport TransitionProgressContext from './TransitionProgressContext';\n\nexport default function useTransitionProgress() {\n const progress = React.useContext(TransitionProgressContext);\n\n if (progress === undefined) {\n throw new Error(\n \"Couldn't find values for transition progress. Are you inside a screen in Native Stack?\"\n );\n }\n\n return progress;\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAOC,yBAAyB,MAAM,6BAA6B;AAEnE,eAAe,SAASC,qBAAqBA,CAAA,EAAG;EAC9C,MAAMC,QAAQ,GAAGH,KAAK,CAACI,UAAU,CAACH,yBAAyB,CAAC;EAE5D,IAAIE,QAAQ,KAAKE,SAAS,EAAE;IAC1B,MAAM,IAAIC,KAAK,CACb,wFACF,CAAC;EACH;EAEA,OAAOH,QAAQ;AACjB","ignoreList":[]}
1
+ {"version":3,"names":["React","TransitionProgressContext","useTransitionProgress","progress","useContext","undefined","Error"],"sources":["useTransitionProgress.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport TransitionProgressContext from './TransitionProgressContext';\n\nexport default function useTransitionProgress() {\n const progress = React.useContext(TransitionProgressContext);\n\n if (progress === undefined) {\n throw new Error(\n \"Couldn't find values for transition progress. Are you inside a screen in Native Stack?\"\n );\n }\n\n return progress;\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAOC,yBAAyB,MAAM,6BAA6B;AAEnE,eAAe,SAASC,qBAAqBA,CAAA,EAAG;EAC9C,MAAMC,QAAQ,GAAGH,KAAK,CAACI,UAAU,CAACH,yBAAyB,CAAC;EAE5D,IAAIE,QAAQ,KAAKE,SAAS,EAAE;IAC1B,MAAM,IAAIC,KAAK,CACb,wFACF,CAAC;EACH;EAEA,OAAOH,QAAQ;AACjB"}
@@ -1 +1 @@
1
- {"version":3,"names":["BackHandler","Platform","isSearchBarAvailableForCurrentPlatform","includes","OS","executeNativeBackPress","exitApp","isNewBackTitleImplementation"],"sources":["utils.ts"],"sourcesContent":["import { BackHandler, Platform } from 'react-native';\n\nexport const isSearchBarAvailableForCurrentPlatform = [\n 'ios',\n 'android',\n].includes(Platform.OS);\n\nexport function executeNativeBackPress() {\n // This function invokes the native back press event\n BackHandler.exitApp();\n return true;\n}\n\n// Because of a bug introduced in https://github.com/software-mansion/react-native-screens/pull/1646\n// react-native-screens v3.21 changed how header's backTitle handles whitespace strings in https://github.com/software-mansion/react-native-screens/pull/1726\n// To allow for backwards compatibility in @react-navigation/native-stack we need a way to check if this version or newer is used.\n// See https://github.com/react-navigation/react-navigation/pull/11423 for more context.\nexport const isNewBackTitleImplementation = true;\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,cAAc;AAEpD,OAAO,MAAMC,sCAAsC,GAAG,CACpD,KAAK,EACL,SAAS,CACV,CAACC,QAAQ,CAACF,QAAQ,CAACG,EAAE,CAAC;AAEvB,OAAO,SAASC,sBAAsBA,CAAA,EAAG;EACvC;EACAL,WAAW,CAACM,OAAO,CAAC,CAAC;EACrB,OAAO,IAAI;AACb;;AAEA;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["BackHandler","Platform","isSearchBarAvailableForCurrentPlatform","includes","OS","executeNativeBackPress","exitApp","isNewBackTitleImplementation"],"sources":["utils.ts"],"sourcesContent":["import { BackHandler, Platform } from 'react-native';\n\nexport const isSearchBarAvailableForCurrentPlatform = [\n 'ios',\n 'android',\n].includes(Platform.OS);\n\nexport function executeNativeBackPress() {\n // This function invokes the native back press event\n BackHandler.exitApp();\n return true;\n}\n\n// Because of a bug introduced in https://github.com/software-mansion/react-native-screens/pull/1646\n// react-native-screens v3.21 changed how header's backTitle handles whitespace strings in https://github.com/software-mansion/react-native-screens/pull/1726\n// To allow for backwards compatibility in @react-navigation/native-stack we need a way to check if this version or newer is used.\n// See https://github.com/react-navigation/react-navigation/pull/11423 for more context.\nexport const isNewBackTitleImplementation = true;\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,cAAc;AAEpD,OAAO,MAAMC,sCAAsC,GAAG,CACpD,KAAK,EACL,SAAS,CACV,CAACC,QAAQ,CAACF,QAAQ,CAACG,EAAE,CAAC;AAEvB,OAAO,SAASC,sBAAsBA,CAAA,EAAG;EACvC;EACAL,WAAW,CAACM,OAAO,CAAC,CAAC;EACrB,OAAO,IAAI;AACb;;AAEA;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GAAG,IAAI"}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@amazon-devices/react-native-screens", "version": "2.0.1758683737+3.25.0", "description": "Native navigation primitives for your React Native app.", "scripts": {"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": "find ios/ -iname *.h -o -iname *.m -o -iname *.cpp -o -iname *.mm | xargs clang-format -i", "format": "yarn format-js && yarn format-android && yarn format-ios", "lint-js": "eslint --ext '.js,.ts,.tsx' --fix src", "lint-android": "./android/gradlew -p android spotlessCheck -q", "lint": "yarn lint-js && yarn lint-android", "release": "npm login && release-it", "build:release": "npm run prepare"}, "main": "lib/commonjs/index", "module": "lib/module/index", "react-native": "src/index", "source": "src/index", "types": "lib/typescript/index", "files": ["src/", "common/", "lib/", "native-stack/", "reanimated/", "android/src/main/AndroidManifest.xml", "android/src/main/java/", "android/src/main/jni/", "android/src/main/res", "android/src/fabric/", "android/src/paper/", "android/build.gradle", "ios/", "windows/", "RNScreens.podspec", "react-native.config.js", "README.md", "!**/__tests__", "kepler-compatibility.json", "SystemModules", "SystemBundles", "!android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt", "THIRD_PARTY_NOTICES.txt", "kepler-transformed-package-info.json"], "kepler": {"temporary-alias-for-package": {"name": "react-native-screens", "version": "3.25.0"}}, "repository": {"type": "git", "url": "git+https://github.com/software-mansion/react-native-screens.git"}, "author": {"email": "krzys.magiera@gmail.com", "name": "Krzysztof Magiera"}, "license": "See license in LICENSE", "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", "warn-once": "^0.1.0"}, "peerDependencies": {"react": "*", "react-native": "*"}, "devDependencies": {"@babel/core": "^7.20.0", "@babel/eslint-parser": "7.22.15", "@react-native-community/bob": "^0.17.1", "@types/jest": "^29.3.1", "@types/react": "^18.2.21", "@types/react-native": "0.72.5", "@types/react-test-renderer": "^18.0.0", "@typescript-eslint/eslint-plugin": "^6.5.0", "@typescript-eslint/parser": "^6.5.0", "@react-native-community/cli": "^11.3.6", "@react-native-community/cli-platform-android": "^11.3.6", "@react-native-community/cli-platform-ios": "^11.3.6", "babel-jest": "^29.6.4", "clang-format": "^1.8.0", "eslint": "^8.19.0", "eslint-config-prettier": "^8.10.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.28.1", "eslint-plugin-jest": "^27.2.3", "eslint-plugin-n": "^16.0.2", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-native": "^4.0.0", "husky": "^8.0.3", "jest": "^29.3.1", "lint-staged": "^14.0.1", "metro-react-native-babel-preset": "^0.76.8", "prettier": "^2.8.8", "react": "^18.2.0", "react-dom": "18.0.0", "react-native": "0.72.0", "react-native-reanimated": "^2.2.0", "react-test-renderer": "18.0.0", "release-it": "^15.6.0", "typescript": "4.8.4", "@amazon-devices/react-native-kepler": "^2.0.0+rn0.72.0", "@amazon-devices/react-native-safe-area-context": "file:static/amzn-react-native-safe-area-context-2.0.0.tgz", "@amazon-devices/react-navigation__routers": "file:static/amzn-react-navigation__routers-2.0.0.tgz", "@amazon-devices/react-navigation__core": "file:static/amzn-react-navigation__core-2.0.0.tgz", "@amazon-devices/react-navigation__native": "file:static/amzn-react-navigation__native-2.0.0.tgz"}, "resolutions": {"@react-native-community/cli-platform-android": "^11.3.6", "@react-native-community/cli": "^11.3.6", "@react-native-community/cli-platform-ios": "^11.3.6", "@types/react": "^18.2.21"}, "lint-staged": {"{src,Example}/**/*.{js,ts,tsx}": "yarn format-js", "src/**/*.{js,ts,tsx}": "yarn lint-js", "android/**/*.kt": "yarn format-android", "ios/**/*.{h,m,mm,cpp}": "yarn format-ios"}, "@react-native-community/bob": {"source": "src", "output": "lib", "targets": ["commonjs", "module", ["typescript", {"project": "tsconfig.build.json"}]]}, "eslintIgnore": ["node_modules/", "lib/"], "codegenConfig": {"name": "rnscreens", "type": "components", "jsSrcsDir": "./src/fabric", "android": {"javaPackageName": "com.swmansion.rnscreens"}}, "keplerImport": true}
1
+ {"name": "@amazon-devices/react-native-screens", "version": "2.0.9000000000+3.25.0", "description": "Native navigation primitives for your React Native app.", "scripts": {"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": "find ios/ -iname *.h -o -iname *.m -o -iname *.cpp -o -iname *.mm | xargs clang-format -i", "format": "yarn format-js && yarn format-android && yarn format-ios", "lint-js": "eslint --ext '.js,.ts,.tsx' --fix src", "lint-android": "./android/gradlew -p android spotlessCheck -q", "lint": "yarn lint-js && yarn lint-android", "release": "npm login && release-it", "build:release": "npm run prepare"}, "main": "lib/commonjs/index", "module": "lib/module/index", "react-native": "src/index", "source": "src/index", "types": "lib/typescript/index", "files": ["src/", "common/", "lib/", "native-stack/", "reanimated/", "android/src/main/AndroidManifest.xml", "android/src/main/java/", "android/src/main/jni/", "android/src/main/res", "android/src/fabric/", "android/src/paper/", "android/build.gradle", "ios/", "windows/", "RNScreens.podspec", "react-native.config.js", "README.md", "!**/__tests__", "kepler-compatibility.json", "SystemModules", "SystemBundles", "!android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt", "THIRD_PARTY_NOTICES.txt", "kepler-transformed-package-info.json"], "kepler": {"temporary-alias-for-package": {"name": "react-native-screens", "version": "3.25.0"}}, "repository": {"type": "git", "url": "git+https://github.com/software-mansion/react-native-screens.git"}, "author": {"email": "krzys.magiera@gmail.com", "name": "Krzysztof Magiera"}, "license": "See license in LICENSE", "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", "warn-once": "^0.1.0"}, "peerDependencies": {"react": "*", "react-native": "*"}, "devDependencies": {"@babel/core": "^7.20.0", "@babel/eslint-parser": "7.22.15", "@react-native-community/bob": "^0.17.1", "@types/jest": "^29.3.1", "@types/react": "^18.2.21", "@types/react-native": "0.72.5", "@types/react-test-renderer": "^18.0.0", "@typescript-eslint/eslint-plugin": "^6.5.0", "@typescript-eslint/parser": "^6.5.0", "@react-native-community/cli": "^11.3.6", "@react-native-community/cli-platform-android": "^11.3.6", "@react-native-community/cli-platform-ios": "^11.3.6", "babel-jest": "^29.6.4", "clang-format": "^1.8.0", "eslint": "^8.19.0", "eslint-config-prettier": "^8.10.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.28.1", "eslint-plugin-jest": "^27.2.3", "eslint-plugin-n": "^16.0.2", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-native": "^4.0.0", "husky": "^8.0.3", "jest": "^29.3.1", "lint-staged": "^14.0.1", "metro-react-native-babel-preset": "^0.76.8", "prettier": "^2.8.8", "react": "^18.2.0", "react-dom": "18.0.0", "react-native": "0.72.0", "react-native-reanimated": "^2.2.0", "react-test-renderer": "18.0.0", "release-it": "^15.6.0", "typescript": "4.8.4", "@amazon-devices/react-native-kepler": "^2.0.0+rn0.72.0", "@amazon-devices/react-native-safe-area-context": "file:static/amzn-react-native-safe-area-context-2.0.0.tgz", "@amazon-devices/react-navigation__routers": "file:static/amzn-react-navigation__routers-2.0.0.tgz", "@amazon-devices/react-navigation__core": "file:static/amzn-react-navigation__core-2.0.0.tgz", "@amazon-devices/react-navigation__native": "file:static/amzn-react-navigation__native-2.0.0.tgz"}, "resolutions": {"@react-native-community/cli-platform-android": "^11.3.6", "@react-native-community/cli": "^11.3.6", "@react-native-community/cli-platform-ios": "^11.3.6", "@types/react": "^18.2.21"}, "lint-staged": {"{src,Example}/**/*.{js,ts,tsx}": "yarn format-js", "src/**/*.{js,ts,tsx}": "yarn lint-js", "android/**/*.kt": "yarn format-android", "ios/**/*.{h,m,mm,cpp}": "yarn format-ios"}, "@react-native-community/bob": {"source": "src", "output": "lib", "targets": ["commonjs", "module", ["typescript", {"project": "tsconfig.build.json"}]]}, "eslintIgnore": ["node_modules/", "lib/"], "codegenConfig": {"name": "rnscreens", "type": "components", "jsSrcsDir": "./src/fabric", "android": {"javaPackageName": "com.swmansion.rnscreens"}}, "keplerImport": true}
@@ -119,6 +119,8 @@ const ScreenComponent = 'RNSScreen'
119
119
 
120
120
  const viewConfig = {
121
121
  activityState: true,
122
+ stackPresentation: true,
123
+ stackAnimation: true,
122
124
  };
123
125
 
124
126
  const bubblingEventTypes = {
@@ -294,6 +294,7 @@ class InnerScreen extends React.Component<ScreenProps> {
294
294
  isNativeStack,
295
295
  gestureResponseDistance,
296
296
  onGestureCancel,
297
+ stackAnimation,
297
298
  ...props
298
299
  } = rest;
299
300
 
@@ -319,6 +320,7 @@ class InnerScreen extends React.Component<ScreenProps> {
319
320
  <ScreensNativeModules.NativeScreen
320
321
  {...props}
321
322
  activityState={activityState}
323
+ stackAnimation={stackAnimation}
322
324
  sheetAllowedDetents={sheetAllowedDetents}
323
325
  sheetLargestUndimmedDetent={sheetLargestUndimmedDetent}
324
326
  sheetGrabberVisible={sheetGrabberVisible}
package/src/index.tsx CHANGED
@@ -40,6 +40,7 @@ export class NativeScreen extends React.Component<ScreenProps> {
40
40
  activityState,
41
41
  style,
42
42
  enabled = ENABLE_SCREENS,
43
+ stackAnimation,
43
44
  ...rest
44
45
  } = this.props;
45
46