react-native-search-header icon indicating copy to clipboard operation
react-native-search-header copied to clipboard

topOffset 0 for Android?

Open karanmartian opened this issue 6 years ago • 3 comments

Is the topOffset supposed to be 0 fro Android. The default value is working fine on ios but on Android there is a large top offset

karanmartian avatar Jun 24 '19 07:06 karanmartian

The default topOffset is not zero. I set it at 24 as default. You can set the topOffset = { Platform.OS === 'ios' ? 24 : 0 }

tuantle avatar Jun 24 '19 19:06 tuantle

Yea thats what I meant. Why do I have to set the topOffset to 0 for Android and not the default 24? Is it because of the Statusbar differences between Android and iOS?

karanmartian avatar Jun 25 '19 05:06 karanmartian

I will update the next release with topOffset set correctly for Android.

tuantle avatar Jun 26 '19 16:06 tuantle