diff --git a/apps/src/tests/Test3212/BottomTabsScenario.tsx b/apps/src/tests/Test3212/BottomTabsScenario.tsx
index beadf4b89d..9c98bfb1ed 100644
--- a/apps/src/tests/Test3212/BottomTabsScenario.tsx
+++ b/apps/src/tests/Test3212/BottomTabsScenario.tsx
@@ -1,4 +1,4 @@
-import React, { useCallback, useState } from "react";
+import React, { useState } from "react";
import { SCROLL_EDGE_EFFECT_DEFAULTS, ScrollEdgeEffects, ScrollEdgeEffectsConfigContext } from "./context";
import { NavigationContainer, NavigationIndependentTree } from "@react-navigation/native";
import { BottomTabsContainer } from "../../shared/gamma/containers/bottom-tabs/BottomTabsContainer"
@@ -6,12 +6,18 @@ import { Config } from "./Config";
import { ScrollViewTemplate } from "./ScrollViewTemplate";
import { ScrollView } from "react-native";
+function ConfigComponent() {
+ // Add ScrollView for automatic insets which are missing in BottomTabsScreen
+ return (
+
+
+
+ );
+}
+
export function BottomTabsScenario() {
const [config, setConfig] = useState({ ...SCROLL_EDGE_EFFECT_DEFAULTS });
- // Add ScrollView for automatic insets which are missing in BottomTabsScreen
- const ConfigComponent = useCallback(() => , []);
-
return (
diff --git a/apps/src/tests/Test3212/ScrollViewTemplate.tsx b/apps/src/tests/Test3212/ScrollViewTemplate.tsx
index d381403087..b4175d8ca9 100644
--- a/apps/src/tests/Test3212/ScrollViewTemplate.tsx
+++ b/apps/src/tests/Test3212/ScrollViewTemplate.tsx
@@ -1,10 +1,16 @@
-import React, { ScrollView, Text } from "react-native";
+import React from "react";
+import { Button, ScrollView, Text } from "react-native";
+import { useScrollEdgeEffectsConfigContext } from "./context";
export function ScrollViewTemplate() {
const emoji = ['😎', '🍏', '👀', '🤖', '👾', '👨💻'];
+ const { setConfig } = useScrollEdgeEffectsConfigContext();
return (
-
+
+