From c46bc1c8b93b4890add776a238b91a0aee67fc38 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Thu, 26 Sep 2019 09:54:51 -0600 Subject: [PATCH] remove arr monkeypatch --- example/ios/Podfile.lock | 4 ++-- example/package.json | 2 +- example/src/shared-components.tsx | 2 +- example/yarn.lock | 8 ++++---- src/pager.tsx | 8 -------- 5 files changed, 8 insertions(+), 16 deletions(-) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 3427c1d..789d1d4 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -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) @@ -185,7 +185,7 @@ SPEC CHECKSUMS: React-RCTVibration: 2105b2e0e2b66a6408fc69a46c8a7fb5b2fdade0 React-RCTWebSocket: cd932a16b7214898b6b7f788c8bddb3637246ac4 RNGestureHandler: 4cb47a93019c1a201df2644413a0a1569a51c8aa - RNReanimated: 1b52415c4302f198cb581282a0166690bad62c43 + RNReanimated: 6abbbae2e5e72609d85aabd92a982a94566885f1 yoga: 312528f5bbbba37b4dcea5ef00e8b4033fdd9411 PODFILE CHECKSUM: 54eb0fd240f6134c7b39890d98d74d8d96f35989 diff --git a/example/package.json b/example/package.json index 9fe8361..31fafb4 100644 --- a/example/package.json +++ b/example/package.json @@ -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": { diff --git a/example/src/shared-components.tsx b/example/src/shared-components.tsx index ae916c9..b93e2b1 100644 --- a/example/src/shared-components.tsx +++ b/example/src/shared-components.tsx @@ -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 ( - // 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 // this enables very large child lists to render efficiently // the downside is that children are unmounted after they pass this threshold