Skip to content

Commit

Permalink
cubic-screen initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ebouJ committed Jul 30, 2018
1 parent f3d2582 commit 6f60f32
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,10 +1,12 @@
import { createStackNavigator } from "react-navigation"
import { CubicEquation } from "../views/example/cubic-equation/cubic-equation-screen"
import { QuadraticEquation } from "../views/example/quadratic-equation/quadratic-equation-screen"
import { LinearEquation } from "../views/example/linear-equation/linear-equation-screen"
import { ExampleNavigator } from "./example-navigator"

export const RootNavigator = createStackNavigator(
{
cubicEquation: { screen: CubicEquation },
quadraticEquation: { screen: QuadraticEquation },
linearEquation: { screen: LinearEquation },
exampleStack: { screen: ExampleNavigator },
Expand Down
26 changes: 26 additions & 0 deletions src/views/example/cubic-equation/cubic-equation-screen.tsx
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 CubicEquationScreenProps extends NavigationScreenProps<{}> {
}

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

// @inject("mobxstuff")
@observer
export class CubicEquation extends React.Component<CubicEquationScreenProps, {}> {
render () {
return (
<Screen style={ROOT} preset="fixedCenter">
<Text preset="header" tx="cubicEquation.header" />
</Screen>
)
}
}
1 change: 1 addition & 0 deletions src/views/example/cubic-equation/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./cubic-equation-screen"

0 comments on commit 6f60f32

Please sign in to comment.