Skip to content

Commit

Permalink
three systems equation initial screen implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ebouJ committed Jul 30, 2018
1 parent 9ad1d66 commit 57dcbfc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/navigation/root-navigator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createStackNavigator } from "react-navigation"
import { ThreeLinearEquation } from "../views/example/three-linear-equation/three-linear-equation-screen"
import { TwoLinearEquation } from "../views/example/two-linear-equation/two-linear-equation-screen"
import { CubicEquation } from "../views/example/cubic-equation/cubic-equation-screen"
import { QuadraticEquation } from "../views/example/quadratic-equation/quadratic-equation-screen"
Expand All @@ -7,6 +8,7 @@ import { ExampleNavigator } from "./example-navigator"

export const RootNavigator = createStackNavigator(
{
threeLinearEquation: { screen: ThreeLinearEquation },
twoLinearEquation: { screen: TwoLinearEquation },
cubicEquation: { screen: CubicEquation },
quadraticEquation: { screen: QuadraticEquation },
Expand Down
1 change: 1 addition & 0 deletions src/views/example/three-linear-equation/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./three-linear-equation-screen"
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import * as React from "react"
import { observer } from "mobx-react"
import { ViewStyle } from "react-native"
import { Text } from "../../shared/text"
import { Screen } from "../../shared/screen"
import { color } from "../../../theme"
import { NavigationScreenProps } from "react-navigation"

export interface ThreeLinearEquationScreenProps extends NavigationScreenProps<{}> {
}

const ROOT: ViewStyle = {
backgroundColor: color.palette.black,
}

// @inject("mobxstuff")
@observer
export class ThreeLinearEquation extends React.Component<ThreeLinearEquationScreenProps, {}> {
render () {
return (
<Screen style={ROOT} preset="fixedCenter">
<Text preset="header" tx="threeLinearEquation.header" />
</Screen>
)
}
}

0 comments on commit 57dcbfc

Please sign in to comment.