diff --git a/docs/storybook/ui-explorer/AppText.js b/docs/storybook/ui-explorer/AppText.js index 74db8275..c158f8b4 100644 --- a/docs/storybook/ui-explorer/AppText.js +++ b/docs/storybook/ui-explorer/AppText.js @@ -4,16 +4,27 @@ * @flow */ +import { bool } from 'prop-types'; import React from 'react'; import { StyleSheet, Text } from 'react-native'; -const AppText = ({ style, ...rest }) => ( - -); +class AppText extends React.PureComponent { + static contextTypes = { + isInAParentText: bool + }; + + render() { + const { style, ...rest } = this.props; + const isInAParentText = this.context; + return ( + + ); + } +} export default AppText;