Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions packages/rn-tester/js/examples/Animated/TransformStylesExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ component AnimatedView(properties: Array<string>, useNativeDriver: boolean) {
}}>
Apply Selected Transforms
</RNTesterButton>
<Animated.View
// $FlowFixMe[incompatible-type] - properties are not exact
style={[styles.animatedView, {transform: transformStyles}]}
/>
<View style={styles.transformIsolation}>
<Animated.View
// $FlowFixMe[incompatible-type] - properties are not exact
style={[styles.animatedView, {transform: transformStyles}]}
/>
</View>
</>
);
}
Expand Down Expand Up @@ -153,6 +155,11 @@ const styles = StyleSheet.create({
width: 100,
backgroundColor: 'blue',
},
transformIsolation: {
// Isolate the 3D-transformed view so iOS does not composite it with sibling
// controls, which causes rendering artifacts with rotateX and rotateY.
isolation: 'isolate',
},
bottomSeparation: {
paddingBottom: 6,
marginBottom: 6,
Expand Down
Loading