Skip to content

Commit

Permalink
Merge pull request #12345 from aimane-chnaif/fix-10905
Browse files Browse the repository at this point in the history
fix keyboard issue on FloatingActionButton component
  • Loading branch information
tgolen authored Nov 7, 2022
2 parents a566021 + 843c8e6 commit 391cd5f
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions src/components/FloatingActionButton.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React, {PureComponent} from 'react';
import {
Pressable, Animated, Easing, KeyboardAvoidingView,
} from 'react-native';
import {Pressable, Animated, Easing} from 'react-native';
import PropTypes from 'prop-types';
import Icon from './Icon';
import * as Expensicons from './Icon/Expensicons';
Expand Down Expand Up @@ -73,21 +71,19 @@ class FloatingActionButton extends PureComponent {
});

return (
<KeyboardAvoidingView behavior="padding">
<Tooltip absolute text={this.props.translate('common.new')}>
<AnimatedPressable
accessibilityLabel={this.props.accessibilityLabel}
accessibilityRole={this.props.accessibilityRole}
onPress={this.props.onPress}
style={[
styles.floatingActionButton,
StyleUtils.getAnimatedFABStyle(rotate, backgroundColor),
]}
>
<AnimatedIcon src={Expensicons.Plus} fill={fill} />
</AnimatedPressable>
</Tooltip>
</KeyboardAvoidingView>
<Tooltip absolute text={this.props.translate('common.new')}>
<AnimatedPressable
accessibilityLabel={this.props.accessibilityLabel}
accessibilityRole={this.props.accessibilityRole}
onPress={this.props.onPress}
style={[
styles.floatingActionButton,
StyleUtils.getAnimatedFABStyle(rotate, backgroundColor),
]}
>
<AnimatedIcon src={Expensicons.Plus} fill={fill} />
</AnimatedPressable>
</Tooltip>
);
}
}
Expand Down

0 comments on commit 391cd5f

Please sign in to comment.