Skip to content

Commit

Permalink
test(react-native): pin react-navigation to v6.x in test fixtures (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag authored Nov 12, 2024
1 parent 1919456 commit 37b6628
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/generate-react-native-fixture
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ const DEPENDENCIES = [
`react-native-file-access@${reactNativeFileAccessVersion}`
]

const reactNavigationVersion = parseFloat(reactNativeVersion) <= 0.64 ? '6.1.18' : 'latest'
const reactNavigationNativeStackVersion = parseFloat(reactNativeVersion) <= 0.64 ? '6.11.0' : 'latest'
const reactNativeScreensVersion = parseFloat(reactNativeVersion) <= 0.64 ? '3.14.0' : 'latest'
const reactNativeSafeAreaContextVersion = parseFloat(reactNativeVersion) <= 0.64 ? '4.1.0' : 'latest'
const reactNavigationVersion = '6.1.18'
const reactNavigationNativeStackVersion = '6.11.0'
const reactNativeScreensVersion = parseFloat(reactNativeVersion) <= 0.64 ? '3.14.0' : '3.35.0'
const reactNativeSafeAreaContextVersion = parseFloat(reactNativeVersion) <= 0.64 ? '4.1.0' : '4.14.0'
const REACT_NAVIGATION_DEPENDENCIES = [
`@react-navigation/native@${reactNavigationVersion}`,
`@react-navigation/native-stack@${reactNavigationNativeStackVersion}`,
Expand Down

0 comments on commit 37b6628

Please sign in to comment.