mirror of
https://github.com/status-im/react-navigation-stack.git
synced 2025-02-18 09:27:01 +00:00
Fix crash caused by attempting to access properties on animatedStyle when no screen interpolator
https://github.com/react-navigation/react-navigation-stack/issues/64
This commit is contained in:
parent
1c32b935b8
commit
0e9dfcaeef
@ -24,7 +24,6 @@ function getAccessibilityProps(isActive) {
|
|||||||
class Card extends React.Component {
|
class Card extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
animatedStyle,
|
|
||||||
children,
|
children,
|
||||||
pointerEvents,
|
pointerEvents,
|
||||||
style,
|
style,
|
||||||
@ -42,6 +41,9 @@ class Card extends React.Component {
|
|||||||
extrapolate: 'clamp',
|
extrapolate: 'clamp',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// animatedStyle can be `false` if there is no screen interpolator
|
||||||
|
const animatedStyle = this.props.animatedStyle || {};
|
||||||
|
|
||||||
const {
|
const {
|
||||||
shadowOpacity,
|
shadowOpacity,
|
||||||
overlayOpacity,
|
overlayOpacity,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user