UNPKG

react-widgets

Version:

An à la carte set of polished, extensible, and accessible inputs built for React

28 lines (21 loc) 483 B
'use strict'; var React = require('react'); module.exports = { propTypes: { isRtl: React.PropTypes.bool }, contextTypes: { isRtl: React.PropTypes.bool }, childContextTypes: { isRtl: React.PropTypes.bool }, getChildContext: function getChildContext() { return { isRtl: this.props.isRtl || this.context && this.context.isRtl }; }, isRtl: function isRtl() { return !!(this.props.isRtl || this.context && this.context.isRtl); } };