Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/TopBar.purs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ import Paper (menu, menuItem)

css :: forall css. { | css } -> CSS
css = unsafeCoerce
type Props = { shown :: Boolean, onLeftButtonPressed :: EffectFn1 (NativeSyntheticEvent RN.NativeTouchEvent) Unit, onRightButtonPressed :: EffectFn1 (NativeSyntheticEvent RN.NativeTouchEvent) Unit, title :: String}
type Props = {
shown :: Boolean,
onLeftButtonPressed :: EffectFn1 (NativeSyntheticEvent RN.NativeTouchEvent) Unit,
onRightButtonPressed :: EffectFn1 (NativeSyntheticEvent RN.NativeTouchEvent) Unit,
title :: String,
setHighlightVerb :: (Boolean -> Boolean) -> Effect Unit,
setHighlightNoun :: (Boolean -> Boolean) -> Effect Unit,
setHighlightAdjective :: (Boolean -> Boolean) -> Effect Unit,
}
styles = {
title: {
textAlign: "center",
Expand Down
1 change: 1 addition & 0 deletions src/foreign/Paper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ exports._listItem = paper.List.Item
exports._title = paper.Title
exports._menu = paper.Menu
exports._menuItem = paper.Menu.Item
exports._switch = paper.Switch
exports.listIcon = paper.List.Icon
exports.navigationOptions = function(component) {
return function (options) {
Expand Down
3 changes: 3 additions & 0 deletions src/foreign/Paper.purs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ foreign import _title :: forall props. ReactComponent props

foreign import _menu :: forall props. ReactComponent props
foreign import _menuItem :: forall props. ReactComponent props
foreign import _switch :: forall props. ReactComponent props

foreign import navigationOptions ::
forall props opts.
Expand All @@ -35,6 +36,8 @@ listSection = parentElement _listSection

listItem = childElement _listItem

switch = childElement _switch

title = parentElement _title

menu = parentElement _menu
Expand Down