iOS: a recycled EaseView loses overflow: 'hidden' and borderRadius
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- ios, react-native, typescript
- Bereich
- mobile
Rechercherichtung
The issue identifies prepareForRecycle and the retained _props behavior in RCTViewComponentView as the failing path; start by tracing how EaseView’s iOS recycling code resets layer properties and compare it with React Native’s prop reapplication behavior. The issue links a reproducing example under example/app/issues; use the unmount/remount steps with unchanged styles to verify the fix. Done means the remounted view clips its oversized child with rounded corners; pull request #73 is already open against this issue.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
On iOS (new architecture), an EaseView that is unmounted and later mounted again can lose its overflow: 'hidden' and borderRadius. The reused view no longer clips its children and has square corners. In our app this showed up after some navigation as a background image spilling out of rounded buttons and switches.
Cause: prepareForRecycle resets layer properties that RCTViewComponentView owns (masksToBounds, cornerRadius, backgroundColor, borders, shadow, opacity and transform). RCTViewComponentView keeps _props across recycling and only applies a style value again when it changes. So when the recycled view is mounted with the same style, overflow: 'hidden' and borderRadius look unchanged to React Native and are never set on the layer again.
Expected: the remounted view clips its children with rounded corners, like the first mount.

Steps to reproduce
- Render an
EaseViewwithoverflow: 'hidden'andborderRadius, and a child larger than it (for example a 300x300 view inside a 160x64 pill). - Unmount it.
- Mount it again with the same props.
- The child is no longer clipped and the corners are square.
const [shown, setShown] = useState(true);
{shown && (
<EaseView
animate={{ opacity: 1 }}
transition={{ type: 'timing', duration: 200 }}
style={{ width: 160, height: 64, borderRadius: 32, overflow: 'hidden' }}
>
<View style={{ width: 300, height: 300, backgroundColor: 'red' }} />
</EaseView>
)}
<Pressable onPress={() => setShown((s) => !s)}>
<Text>Toggle</Text>
</Pressable>
Snack or a link to a repository
The snippet above is the whole repro. The same repro as an example screen, with the fix: https://github.com/el-lsan/react-native-ease/tree/fix/ios-recycle-keeps-clipping/example/app/issues (a pull request follows).
react-native-ease version
0.9.0
React Native version
0.88.1
Platforms
iOS
Architecture
New Architecture (Fabric)
Build type
Release (also seen in debug)
Device
iOS simulator and a real device
Device model
iPhone SE (2nd generation) simulator, iOS 27.0; iPhone 15 Pro Max, iOS 27.0.1
Acknowledgements
Yes, I searched for similar issues. The closest is #54 (a loop surviving on a recycled view), a different symptom in the same recycling path.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 998
- Forks
- 17
- Ø Merge
- 1 T. 7 Std.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus appandflow/react-native-ease
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
appandflow/react-native-ease#48 · 2 Kommentare ·
-
Exit animations supportEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
Alle Issues in appandflow/react-native-ease
Ähnliche Issues
-
documentation Entwickler
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 89/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:frontend bug ci-test level:low priority:high
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
skytuhua-org/Gen-V1#2974 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
area: cli area: core priority: P3 type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
appandflow/stim#6736 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
naomiaro/waveform-playlist#973 ·
Maintainer antworten meist innerhalb von 1 Tag