Skip to content

Commit

Permalink
adding NavBar properties to NavBarProps and SceneProps typings: (#1973)
Browse files Browse the repository at this point in the history
- navigationBarBackgroundImage
 - navigationBarBackgroundImageStyle
 - navigationBarTitleImage
 - navigationBarTitleImageStyle
  • Loading branch information
encosw authored and aksonov committed Jul 6, 2017
1 parent f95aae9 commit 1e8e2e0
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,22 @@ declare namespace RNRF {
* Optionally override the styles for NavigationCard's Animated.View rendering the scene. Receives first argument of NavigationSceneRendererProps and second argument of {hideNavBar,hideTabBar,isActive} (see Example app).
*/
getSceneStyle?: Function,

/**
* Optionally override the background image for NavigationBar
*/
navigationBarBackgroundImage?: ReactNative.Image,
/**
* Optionally override the style of background image for NavigationBar
*/
navigationBarBackgroundImageStyle?: ReactNative.ImageStyle,
/**
* Optionally override the title image for NavigationBar
*/
navigationBarTitleImage?: ReactNative.Image,
/**
* Optionally override the style of title image for NavigationBar
*/
navigationBarTitleImageStyle?: ReactNative.ImageStyle,

// Tabs

Expand Down Expand Up @@ -328,6 +343,10 @@ declare namespace RNRF {
titleStyle?: ReactNative.TextStyle,
position?: Object,
navigationBarStyle?: ReactNative.ViewStyle,
navigationBarTitleImage?: ReactNative.Image,
navigationBarTitleImageStyle?: ReactNative.ImageStyle
navigationBarBackgroundImage?: ReactNative.Image,
navigationBarBackgroundImageStyle?: ReactNative.ImageStyle,
renderTitle?: any,
}
export class NavBar extends React.Component<NavBarProps, {}>{ }
Expand Down

0 comments on commit 1e8e2e0

Please sign in to comment.