Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
remove arr monkeypatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Smith authored and Andrew Smith committed Sep 27, 2019
1 parent 4571c62 commit c46bc1c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ PODS:
- React-Core (= 0.60.5)
- RNGestureHandler (1.4.1):
- React
- RNReanimated (1.2.0):
- RNReanimated (1.3.0):
- React
- yoga (0.60.5.React)

Expand Down Expand Up @@ -185,7 +185,7 @@ SPEC CHECKSUMS:
React-RCTVibration: 2105b2e0e2b66a6408fc69a46c8a7fb5b2fdade0
React-RCTWebSocket: cd932a16b7214898b6b7f788c8bddb3637246ac4
RNGestureHandler: 4cb47a93019c1a201df2644413a0a1569a51c8aa
RNReanimated: 1b52415c4302f198cb581282a0166690bad62c43
RNReanimated: 6abbbae2e5e72609d85aabd92a982a94566885f1
yoga: 312528f5bbbba37b4dcea5ef00e8b4033fdd9411

PODFILE CHECKSUM: 54eb0fd240f6134c7b39890d98d74d8d96f35989
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react": "16.8.6",
"react-native": "0.60.5",
"react-native-gesture-handler": "^1.4.1",
"react-native-reanimated": "^1.2.0",
"react-native-reanimated": "^1.3.0",
"react-native-redash": "^8.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion example/src/shared-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const colors = [
'salmon',
];

function Slide({i, focused}: {i: number; focused: boolean}) {
function Slide({i, focused}: {i: number; focused?: boolean}) {
const [count, setCount] = useState(0);
return (
<View
Expand Down
8 changes: 4 additions & 4 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5678,10 +5678,10 @@ react-native-gesture-handler@^1.4.1:
invariant "^2.2.4"
prop-types "^15.7.2"

react-native-reanimated@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-1.2.0.tgz#9219227a52a5dfa4d34c324596d6726ccd874293"
integrity sha512-vkWRHrPK5qfHP/ZawlRoo38oeYe9NZaaOH/lmFxRcsKzaSK6x3H5ZPXI8lK6MfTLveqwo1QhJje3zIKXO4nQQw==
react-native-reanimated@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-1.3.0.tgz#581cdb0bd1ff05e7304b116af712ded0c7665ede"
integrity sha512-KFno6D0q09kx71IDuPa4qeC1t1msALsCMuli3/EN3YDf8XoM2CG53yzhVHMFtmcW0IUCySugHgxQiuT5BzwOPA==

react-native-redash@^8.0.0:
version "8.0.0"
Expand Down
8 changes: 0 additions & 8 deletions src/pager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,6 @@ function Pager({
add(inverseTranslate, multiply(dimension, clampNextValue))
);

// convert to array since children is mapped to <Page />
// array structure is crucial to maintaining proper index `key` values
// on child screens, and allows them to memoize their individual
// computations / transformations
if (numberOfScreens === 1) {
children = [children];
}

// slice the children that are rendered by the <Pager />
// this enables very large child lists to render efficiently
// the downside is that children are unmounted after they pass this threshold
Expand Down

0 comments on commit c46bc1c

Please sign in to comment.