Skip to content

Commit 9c02f49

Browse files
committed
Fixes touchable formula on iOS
1 parent 960c535 commit 9c02f49

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/common/components/FormulaeRender.ios.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
import React, {
44
StyleSheet,
55
Text,
6-
View
6+
View,
7+
TouchableHighlight
78
} from 'react-native';
89

910
export default function (props, state) {
1011
return (
1112
<View style={styles.formulae}>
1213
{this.state.displayFormulae.map(function(formula) {
13-
return <View style={getFormulaStyles(formula.operator)}>
14+
return <TouchableHighlight style={getFormulaStyles(formula.operator)} onPress={this.handleClick.bind(this, formula)} underlayColor='#cdcdcd'>
1415
<Text style={styles.text}>{formula.literal}</Text>
15-
</View>
16+
</TouchableHighlight>
1617
}, this)}
1718
</View>
1819
);

0 commit comments

Comments
 (0)