alinz / react-native-tabbar

Tab bar with more freedom
MIT License
265 stars 49 forks source link

Update width on orientation change, and pass onLayout from parent #31

Closed adamski closed 8 years ago

adamski commented 8 years ago

This both addresses #21 and allows to pass onLayout prop to Tabbar e.g.

<Tabbar ref="myTabbar" barColor={'gray'} onLayout={event => { console.log ("layout changed")}}>

See updated example.

I added the ability to pass in the onLayout prop as Tabbar is a root component in my app and I need to respond to onLayout events.

adamski commented 8 years ago

Hi please consider merging this in! Thanks