callstackincubator / rebolt-navigation

Fast and declarative router for Rebolt
https://rebolt-navigation.callstack.com/
MIT License
208 stars 11 forks source link

[Bug Fix] Header Style on IOS #119

Closed broerjuang closed 6 years ago

broerjuang commented 6 years ago

I try to tackle the issue on #116 . I think it's because the headerStyle props never get passed to SafeAreaView. So, here's the result after I define the style on Home.

    <StackNavigator.Screen
      headerTitle="Homes"
      navigation=nav
      headerStyle=Style.(style([backgroundColor(String("red"))]))>
      ...(
           () =>
             <View style=Styles.continer>
               <Text style=Styles.title>
                 (ReasonReact.string("Home screen"))
               </Text>
               (renderButtons(nav))
             </View>
         )
    </StackNavigator.Screen>,

simulator screen shot - iphone 6 - 2018-07-23 at 00 43 41

knowbody commented 6 years ago

Thank you!