chenglou / chenglou/pretext

React Native: bridge native text measurement for virtualized lists

Open
#157 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
50.3k
Forks
2.7k
Avg merge
2h 40m
Merged PRs (30d)
69

Description

React Native lacks a native text measurement backend, making virtualized lists with Pretext inefficient.

Pretext already has fast, accurate text measurement. Exposing it via a React Native bridge (TurboModule or legacy Bridge) would allow mobile apps to use pre-calculated heights in FlatList/VirtualizedList without JS thread overhead.

This unlocks Pretext for mobile UIs where performance-critical text layouts are common.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading Pretext's existing text-measurement entry point and the React Native FlatList/VirtualizedList integration points mentioned in the issue. Determine whether the legacy Bridge or TurboModule fits the project, then verify that native measurement can provide pre-calculated list heights without JS-thread overhead.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.