Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get this working with RN0.31 #28

Open
npomfret opened this issue Aug 10, 2016 · 0 comments
Open

Can't get this working with RN0.31 #28

npomfret opened this issue Aug 10, 2016 · 0 comments

Comments

@npomfret
Copy link

Hi

I can't seem to get this working. I think the examples are a lot more complicated than they need to be. What are the minimum steps required to make a single TextInput scroll into view?

So far I have something like:

      <SmartScrollView
        forceFocusField={this.state.focusField}
        onRefFocus={forceFocusField => this.setState({focusField: forceFocusField})}
      >
         ... other stuff here
            <TextInput
              smartScrollOptions={{type: 'text', scrollRef: "someRef"}}
            />
      </SmartScrollView>

But this doesn't work.

Firstly, the TextInput doesn't scroll into view.

Secondly, I can't get the keyboard to dismiss no matter what. Previously I was using keyboardDismissMode="on-drag" but this no longer works.

Thirdly, when switching to a 2nd TextInput the auto-correct/complete box on top of the keyboard in iOS goes transparent and there are no suggestions in it.

What am I doing wrong please?

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

No branches or pull requests

1 participant