From 18771655c48858a4440ae51000167f9334447070 Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Thu, 22 Oct 2026 13:56:36 +0100 Subject: [PATCH] test: add Android MVCP anchor selection reproducer Co-authored-by: Codex --- .../examples/Playground/RNTesterPlayground.js | 136 +++++++++++++++++- 1 file changed, 130 insertions(+), 6 deletions(-) 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 - +