@amazon-devices/react-navigation__stack 2.0.9000000000 → 2.0.9000000001

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.
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@amazon-devices/react-navigation__stack", "description": "Stack navigator component for iOS and Android with animated transitions and gestures", "version": "2.0.9000000000+6.3.19", "keywords": ["react-native-component", "react-component", "react-native", "react-navigation", "ios", "android", "stack"], "license": "See license in LICENSE", "repository": {"type": "git", "url": "https://github.com/react-navigation/react-navigation.git", "directory": "packages/stack"}, "bugs": {"url": "https://github.com/react-navigation/react-navigation/issues"}, "homepage": "https://reactnavigation.org/docs/stack-navigator/", "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "source": "src/index.tsx", "module": "lib/module/index.js", "types": "lib/typescript/src/index.d.ts", "files": ["src", "lib", "kepler-compatibility.json", "!**/__tests__", "SystemModules", "SystemBundles", "THIRD_PARTY_NOTICES.txt", "kepler-transformed-package-info.json"], "sideEffects": false, "kepler": {"temporary-alias-for-package": {"name": "@react-navigation/stack", "version": "6.3.19"}}, "publishConfig": {"access": "public"}, "scripts": {"clean": "del lib"}, "dependencies": {"@amazon-devices/react-navigation__elements": "^2.0.0+1.3.20", "color": "4.2.3", "warn-once": "0.1.0"}, "devDependencies": {"@amazon-devices/react-native-kepler": "^2.0.0+rn0.72.0", "@amazon-devices/react-navigation__native": "^2.0.0+6.1.9", "@testing-library/react-native": "11.5.0", "@types/color": "3.0.2", "@types/jest": "26.0.15", "@types/react": "17.0.2", "@types/react-native": "0.72.5", "del-cli": "5.0.0", "react-native-builder-bob": "0.20.4", "react-native-gesture-handler": "~2.13.0", "@amazon-devices/react-native-safe-area-context": "^2.0.0+3.2.0", "@amazon-devices/react-native-screens": "^2.0.0+3.25.0", "typescript": "4.9.4"}, "peerDependencies": {"@amazon-devices/react-native-kepler": "^2.0.0+rn0.72.0", "@amazon-devices/react-navigation__native": "^2.0.0+6.1.9", "react": "*", "react-native": "*", "react-native-gesture-handler": ">= 2.0.0", "@amazon-devices/react-native-safe-area-context": "^2.0.0+3.2.0", "@amazon-devices/react-native-screens": "^2.0.0+3.25.0"}, "react-native-builder-bob": {"source": "src", "output": "lib", "targets": ["commonjs", "module", ["typescript", {"project": "tsconfig.build.json"}]]}}
1
+ {"name": "@amazon-devices/react-navigation__stack", "description": "Stack navigator component for iOS and Android with animated transitions and gestures", "version": "2.0.9000000001+6.3.19", "keywords": ["react-native-component", "react-component", "react-native", "react-navigation", "ios", "android", "stack"], "license": "See license in LICENSE", "repository": {"type": "git", "url": "https://github.com/react-navigation/react-navigation.git", "directory": "packages/stack"}, "bugs": {"url": "https://github.com/react-navigation/react-navigation/issues"}, "homepage": "https://reactnavigation.org/docs/stack-navigator/", "main": "lib/commonjs/index.js", "react-native": "src/index.tsx", "source": "src/index.tsx", "module": "lib/module/index.js", "types": "lib/typescript/src/index.d.ts", "files": ["src", "lib", "kepler-compatibility.json", "!**/__tests__", "SystemModules", "SystemBundles", "THIRD_PARTY_NOTICES.txt", "kepler-transformed-package-info.json"], "sideEffects": false, "kepler": {"temporary-alias-for-package": {"name": "@react-navigation/stack", "version": "6.3.19"}}, "publishConfig": {"access": "public"}, "scripts": {"clean": "del lib"}, "dependencies": {"@amazon-devices/react-navigation__elements": "^2.0.0+1.3.20", "color": "4.2.3", "warn-once": "0.1.0"}, "devDependencies": {"@amazon-devices/react-native-kepler": "^2.0.0+rn0.72.0", "@amazon-devices/react-navigation__native": "^2.0.0+6.1.9", "@testing-library/react-native": "11.5.0", "@types/color": "3.0.2", "@types/jest": "26.0.15", "@types/react": "17.0.2", "@types/react-native": "0.72.5", "del-cli": "5.0.0", "react-native-builder-bob": "0.20.4", "react-native-gesture-handler": "~2.13.0", "@amazon-devices/react-native-safe-area-context": "^2.0.0+3.2.0", "@amazon-devices/react-native-screens": "^2.0.0+3.25.0", "typescript": "4.9.4"}, "peerDependencies": {"@amazon-devices/react-native-kepler": "^2.0.0+rn0.72.0", "@amazon-devices/react-navigation__native": "^2.0.0+6.1.9", "react": "*", "react-native": "*", "react-native-gesture-handler": ">= 2.0.0", "@amazon-devices/react-native-safe-area-context": "^2.0.0+3.2.0", "@amazon-devices/react-native-screens": "^2.0.0+3.25.0"}, "react-native-builder-bob": {"source": "src", "output": "lib", "targets": ["commonjs", "module", ["typescript", {"project": "tsconfig.build.json"}]]}}
@@ -588,8 +588,8 @@ export default class CardStack extends React.Component<Props, State> {
588
588
  | 1
589
589
  | 0 = 1;
590
590
 
591
- //amznmod_react - Fix off-by-one error in activity state calculation to prevent multiple screens from having same state
592
- if (index < self.length - activeScreensLimit) {
591
+ if (index < self.length - activeScreensLimit - 1) {
592
+ // screen should be inactive because it is too deep in the stack
593
593
  isScreenActive = STATE_INACTIVE;
594
594
  } else {
595
595
  isScreenActive = STATE_TRANSITIONING_OR_BELOW_TOP;