react-native-copilot
react-native-copilot copied to clipboard
Add verticalOffset function support #106
Specifically in react native navigation, the vertical offset is wrong on android (#106). This commit allows passing in an async function that can be executed at runtime to decide vertical offset based on the specific devices statusbar and topbar height (in react native navigations case, using await Navigation.constants() )
Hey @tastyqbit , could you possibly add some explanation to the docs please?
@mohebifar done :)
LGTM, there is just some lint issues that need to be fixed before merging
How can I see what the linter errors are? I can't see it in checks
Here's the failing build:
https://travis-ci.org/github/mohebifar/react-native-copilot/builds/698862581
you can also run npm run lint locally to run the linter