Skip to content

Commit

Permalink
Add Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrainsby committed Feb 3, 2016
1 parent 593cc59 commit bf2806f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ var {
StyleSheet,
TouchableHighlight,
View,
Text
Text,
Platform
} = React;

var Accordion = React.createClass({
Expand Down Expand Up @@ -112,7 +113,7 @@ var Accordion = React.createClass({
}}
>
<View ref="AccordionContent">
{Platform.os === 'ios' || this.state.is_visible ? this.props.content: null}
{(Platform.OS === 'ios' || this.state.is_visible) ? this.props.content : null}
</View>
</View>
</View>
Expand Down

0 comments on commit bf2806f

Please sign in to comment.