diff --git a/src/views/StackView/StackViewCard.js b/src/views/StackView/StackViewCard.js
index b9d3f1e..bb6bf30 100644
--- a/src/views/StackView/StackViewCard.js
+++ b/src/views/StackView/StackViewCard.js
@@ -1,10 +1,25 @@
import React from 'react';
-import { StyleSheet } from 'react-native';
+import { StyleSheet, Platform } from 'react-native';
import { Screen } from './screens';
import createPointerEventsContainer from './createPointerEventsContainer';
const EPS = 1e-5;
+function getAccessibilityProps(isActive) {
+ if (Platform.OS === 'ios') {
+ return {
+ accessibilityElementsHidden: !isActive,
+ accessible: isActive,
+ };
+ } else if (Platform.OS === 'android') {
+ return {
+ importantForAccessibility: isActive ? 'yes' : 'no-hide-descendants',
+ };
+ } else {
+ return null;
+ }
+}
+
/**
* Component that renders the scene as card for the .
*/
@@ -15,19 +30,21 @@ class Card extends React.Component {
pointerEvents,
style,
position,
- scene: { index },
+ scene: { index, isActive },
} = this.props;
const active = position.interpolate({
inputRange: [index, index + 1 - EPS, index + 1],
outputRange: [1, 1, 0],
extrapolate: 'clamp',
});
+
return (
{children}