Skip to content

Commit

Permalink
fix registerNavigator
Browse files Browse the repository at this point in the history
  • Loading branch information
chandu0101 committed May 1, 2017
1 parent ffe0fff commit a4154b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "navigation"

//version := "2017.4.0-SNAPSHOT"
version := "2017.4.0-SNAPSHOT"

enablePlugins(ScalaJSPlugin)

Expand Down
12 changes: 6 additions & 6 deletions src/main/scala/sri/navigation/navigators/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ package object navigators {
}

@inline
def StackNavigator(routes: (String, NavigationStackScreenRouteConfig)*) =
def StackNavigator(routes: (String, NavigationScreenRouteConfig)*) =
StackNavigatorJS(js.Dictionary(routes: _*))

@inline
def StackNavigator(stackConfig: StackNavigatorConfig,
routes: (String, NavigationStackScreenRouteConfig)*) =
routes: (String, NavigationScreenRouteConfig)*) =
StackNavigatorJS(js.Dictionary(routes: _*), stackConfig)

@ScalaJSDefined
Expand Down Expand Up @@ -93,12 +93,12 @@ package object navigators {
}

@inline
def TabNavigator(routes: (String, NavigationTabScreenRouteConfig)*) =
def TabNavigator(routes: (String, NavigationScreenRouteConfig)*) =
TabNavigatorJS(js.Dictionary(routes: _*))

@inline
def TabNavigator(tabConfig: TabNavigatorConfig,
routes: (String, NavigationTabScreenRouteConfig)*) =
routes: (String, NavigationScreenRouteConfig)*) =
TabNavigatorJS(js.Dictionary(routes: _*), tabConfig)

@ScalaJSDefined
Expand Down Expand Up @@ -138,11 +138,11 @@ package object navigators {
}

@inline
def DrawerNavigator(routes: (String, NavigationDrawerScreenRouteConfig)*) =
def DrawerNavigator(routes: (String, NavigationScreenRouteConfig)*) =
DrawerNavigatorJS(js.Dictionary(routes: _*))

@inline
def DrawerNavigator(tabConfig: DrawerNavigatorConfig,
routes: (String, NavigationDrawerScreenRouteConfig)*) =
routes: (String, NavigationScreenRouteConfig)*) =
DrawerNavigatorJS(js.Dictionary(routes: _*), tabConfig)
}
2 changes: 1 addition & 1 deletion src/main/scala/sri/navigation/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ package object navigation {
NavigationInitAction | NavigationStackAction | NavigationTabAction

type NavigationRouteConfig =
NavigationScreenRouteConfig | NavigationLazyScreenRouteConfig
NavigationScreenRouteConfig

type Navigation[P <: js.Object] = NavigationScreenProp[P]

Expand Down

0 comments on commit a4154b5

Please sign in to comment.