Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Doesn't work on Android #12

Closed
outaTiME opened this issue Nov 8, 2017 · 5 comments
Closed

Doesn't work on Android #12

outaTiME opened this issue Nov 8, 2017 · 5 comments

Comments

@outaTiME
Copy link

outaTiME commented Nov 8, 2017

Hi guys, it doesn't work on android but works perfect on iOS, here the code, anything wrong?

import React, { Component } from 'react';
import {
  StyleSheet,
  TextInput,
} from 'react-native';
import InputScrollView from 'react-native-input-scroll-view'; // 1.5.1

export default class App extends Component {
  render() {
    return (
      <InputScrollView>
        {Array(20)
          .fill()
          .map((_, i) => (
            <TextInput
              key={i}
              underlineColorAndroid="transparent"
              style={styles.text}
              placeholder={`Text ${i + 1}`}
            />
          ))}
      </InputScrollView>
    );
  }
}

const styles = StyleSheet.create({
  text: {
    height: 40,
    borderColor: 'gray',
    borderWidth: 1,
    marginBottom: 16,
    // paddingVertical: 4,
    paddingHorizontal: 8,
  },
});

Here the capture in both:

screen recording 2017-11-08 at 04 59 pm

@baijunjie
Copy link
Owner

Yes, you are right, android devices are not fully supported, this is my next task.

@lucidtheory
Copy link

lucidtheory commented Nov 12, 2017

Looks like something KeyboardAvoidingView could solve
https://facebook.github.io/react-native/docs/keyboardavoidingview.html

You could try

behavior = "position"
keyboardVerticalOffset= {80}
 keyboardDismissMode = "on-drag"

as props

@baijunjie
Copy link
Owner

@outaTiME Try v1.6.0

@outaTiME
Copy link
Author

Great @baijunjie I will check tonight ... thanks !!!

@outaTiME
Copy link
Author

outaTiME commented Jul 28, 2019

Hi again guy, im doing a new test today using Expo v33 and still no luck, here the example:

https://snack.expo.io/@outatime/form-into-scrollview

(try to click on multiline text field and keyboard overlaps textarea), any advice?
(note, in iOS works again as expected)
thanks !!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants