diff --git a/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js b/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js index 8e6b10479de7..9468ca97a51e 100644 --- a/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js +++ b/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js @@ -9,30 +9,154 @@ */ import type {RNTesterModuleExample} from '../../types/RNTesterTypes'; +import type {ScrollViewInstance} from 'react-native'; -import RNTesterText from '../../components/RNTesterText'; import * as React from 'react'; -import {StyleSheet, View} from 'react-native'; +import {useRef, useState} from 'react'; +import {Button, ScrollView, StyleSheet, Text, View} from 'react-native'; + +const ROW_HEIGHT = 100; +const INITIAL_OFFSET = ROW_HEIGHT * 6; +const ANCHOR_POSITION = 10_000_000; +const ROWS = Array.from({length: 30}, (_, index) => index); function Playground() { + const [useZeroSizedAnchor, setUseZeroSizedAnchor] = useState(false); + return ( - - Edit "RNTesterPlayground.js" to change this file - +