Skip to content

Commit

Permalink
Replace TouchableNativeFeedback by TouchableOpacity
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Apr 19, 2018
1 parent 0d2b501 commit 69e6717
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/block-management/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @format */

import React from 'react';
import { View, TouchableNativeFeedback, Text } from 'react-native';
import { View, TouchableOpacity, Text } from 'react-native';
import { ToolbarButton } from './constants';

import styles from './toolbar.scss';
Expand All @@ -16,31 +16,31 @@ export default class Toolbar extends React.Component<PropsType> {
render() {
return (
<View style={ styles.toolbar }>
<TouchableNativeFeedback
<TouchableOpacity
onPress={ this.props.onButtonPressed.bind( this, ToolbarButton.PLUS, this.props.uid ) }
>
<View style={ styles.toolbarButton }>
<Text>+</Text>
</View>
</TouchableNativeFeedback>
</TouchableOpacity>
<View style={ styles.buttonSeparator } />
<TouchableNativeFeedback
<TouchableOpacity
onPress={ this.props.onButtonPressed.bind( this, ToolbarButton.UP, this.props.uid ) }
>
<View style={ styles.toolbarButton }>
<Text></Text>
</View>
</TouchableNativeFeedback>
</TouchableOpacity>
<View style={ styles.buttonSeparator } />
<TouchableNativeFeedback
<TouchableOpacity
onPress={ this.props.onButtonPressed.bind( this, ToolbarButton.DOWN, this.props.uid ) }
>
<View style={ styles.toolbarButton }>
<Text></Text>
</View>
</TouchableNativeFeedback>
</TouchableOpacity>
<View style={ styles.buttonSeparator } />
<TouchableNativeFeedback
<TouchableOpacity
onPress={ this.props.onButtonPressed.bind(
this,
ToolbarButton.SETTINGS,
Expand All @@ -51,15 +51,15 @@ export default class Toolbar extends React.Component<PropsType> {
{ /* eslint-disable-next-line jsx-a11y/accessible-emoji */ }
<Text>⚙️</Text>
</View>
</TouchableNativeFeedback>
</TouchableOpacity>
<View style={ styles.buttonSeparator } />
<TouchableNativeFeedback
<TouchableOpacity
onPress={ this.props.onButtonPressed.bind( this, ToolbarButton.DELETE, this.props.uid ) }
>
<View style={ styles.toolbarButton }>
<Text>🗑</Text>
</View>
</TouchableNativeFeedback>
</TouchableOpacity>
</View>
);
}
Expand Down

0 comments on commit 69e6717

Please sign in to comment.