mirror of https://github.com/facebook/jest.git
chore: update React Native example (#14778)
This commit is contained in:
parent
92b6285479
commit
341f529deb
|
@ -64,7 +64,7 @@ exports[`renders the FlatList component 1`] = `
|
|||
onScrollEndDrag={[Function]}
|
||||
removeClippedSubviews={false}
|
||||
renderItem={[Function]}
|
||||
scrollEventThrottle={50}
|
||||
scrollEventThrottle={0.0001}
|
||||
stickyHeaderIndices={[]}
|
||||
viewabilityConfigCallbackPairs={[]}
|
||||
>
|
||||
|
|
|
@ -6,5 +6,5 @@ const rnRequire = createRequire(require.resolve('react-native'));
|
|||
|
||||
module.exports = {
|
||||
// RN bundles this preset, so let's load it instead of depending on it ourselves
|
||||
presets: [rnRequire.resolve('metro-react-native-babel-preset')],
|
||||
presets: [rnRequire.resolve('@react-native/babel-preset')],
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"react": "18.2.0",
|
||||
"react-native": "0.72.3"
|
||||
"react-native": "0.73.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.11.6",
|
||||
|
|
Loading…
Reference in New Issue