Closed
Description
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 7.5.0
Yarn: Not Found
npm: 4.4.1
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: =16.2.0 => 16.2.0
react-native: =0.50.0 => 0.50.0
Target Platform: Android (8.0.0)
Steps to Reproduce
Here is my code:
componentWillMount() {
this.keyboardDidShowListener = Keyboard.addListener(
'keyboardDidShow', () => {
console.log('Here --> Keyboard did show');
this.scrollToEnd()
}
)
}
Expected Behavior
I should see the console log and it should call my function
Actual Behavior
Works perfectly on IOS but nothing happens on Android. Not even the console log so it clearly isn't even setting up a listener for the keyboard.