Skip to content

Commit

Permalink
fix: only set KeyboardAvoidingView behavior for ios (#2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanguckenberger committed May 13, 2022
1 parent 47c535e commit ae97268
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/apollos-ui-authentication/src/Identity/IdentityEntry.js
@@ -1,6 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
import { KeyboardAvoidingView, ScrollView, StyleSheet } from 'react-native';
import {
Platform,
KeyboardAvoidingView,
ScrollView,
StyleSheet,
} from 'react-native';
import { get } from 'lodash';
import {
Button,
Expand Down Expand Up @@ -74,7 +79,9 @@ const IdentityEntry = ({
style={StyleSheet.absoluteFill}
edges={['right', 'top', 'left', 'bottom']}
>
<FlexedKeyboardAvoidingView behavior={'padding'}>
<FlexedKeyboardAvoidingView
behavior={Platform.select({ android: undefined, ios: 'padding' })}
>
<ScrollView
keyboardShouldPersistTaps="always"
contentInsetAdjustmentBehavior={'automatic'}
Expand Down

0 comments on commit ae97268

Please sign in to comment.