Skip to content

Commit

Permalink
Add transform undefined example to RNTester
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Oct 24, 2023
1 parent bd5568c commit 5ed57a0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ function AnimatedTransformStyleExample(): React.Node {
property => properties[property].selected,
)}
/>
<View style={styles.section}>
<Text>{'Should not crash when transform style key is undefined'}</Text>
<Animated.View style={[styles.animatedView, {transform: undefined}]} />
</View>
</View>
);
}
Expand All @@ -149,6 +153,9 @@ const styles = StyleSheet.create({
marginBottom: 6,
borderBottomWidth: 1,
},
section: {
marginTop: 20,
},
});

export default ({
Expand Down

0 comments on commit 5ed57a0

Please sign in to comment.