diff --git a/example/App.js b/example/App.js index 6b338818babf82..f5a6e77863b292 100644 --- a/example/App.js +++ b/example/App.js @@ -1 +1 @@ -export {reactClass as default} from './lib/js/src/RNTesterApp.js'; +export { reactClass as default } from './lib/js/src/RNTesterApp.js'; diff --git a/example/src/ExampleList.re b/example/src/ExampleList.re index 795f7ddd72d238..a9df8f37d69787 100644 --- a/example/src/ExampleList.re +++ b/example/src/ExampleList.re @@ -74,4 +74,4 @@ let components: array(item) = [| Settings.item("SettingsExample"), ImageStore.item("ImageStoreExample"), ActivityIndicator.item("ActivityIndicatorExample"), -|]; +|]; \ No newline at end of file diff --git a/example/src/RNTesterApp.re b/example/src/RNTesterApp.re index 7d17b630facb33..d2fd92130ea406 100644 --- a/example/src/RNTesterApp.re +++ b/example/src/RNTesterApp.re @@ -2,51 +2,49 @@ open BsReactNative; let styles = StyleSheet.create( - Style.( - { - "header": - style([ - height(Pt(60.)), - borderBottomWidth(StyleSheet.hairlineWidth), - borderBottomColor(String("#96969A")), - backgroundColor(String("#F5F5F6")), - alignItems(Center), - justifyContent(Center), - flexDirection(Row), - ]), - "headerLeft": - style([ - position(Absolute), - top(Pt(0.)), - left(Pt(10.)), - bottom(Pt(0.)), - alignItems(Center), - justifyContent(Center), - ]), - "headerCenter": style([flex(1.0)]), - "title": - style([ - fontSize(Float(19.)), - fontWeight(`_600), - textAlign(Center), - ]), - "exampleContainer": style([flex(1.0)]), - "appContainer": - style([ - flex(1.0), - backgroundColor(String("#F5F5F6")), - marginTop(Pt(Platform.os() == Platform.Android ? 20.0 : 0.0)) - ]), - } - ), + Style.{ + "header": + style([ + height(Pt(60.)), + borderBottomWidth(StyleSheet.hairlineWidth), + borderBottomColor(String("#96969A")), + backgroundColor(String("#F5F5F6")), + alignItems(Center), + justifyContent(Center), + flexDirection(Row), + ]), + "headerLeft": + style([ + position(Absolute), + top(Pt(0.)), + left(Pt(10.)), + bottom(Pt(0.)), + alignItems(Center), + justifyContent(Center), + ]), + "headerCenter": style([flex(1.0)]), + "title": + style([ + fontSize(Float(19.)), + fontWeight(`_600), + textAlign(Center), + ]), + "exampleContainer": style([flex(1.0)]), + "appContainer": + style([ + flex(1.0), + backgroundColor(String("#F5F5F6")), + marginTop(Pt(Platform.os() == Platform.Android ? 20.0 : 0.0)), + ]), + }, ); let header = (~onBack=?, ~title, ()) => - (ReasonReact.string(title)) + {ReasonReact.string(title)} - ( + { switch (onBack) { | None => ReasonReact.null | Some(onBack) => @@ -54,7 +52,7 @@ let header = (~onBack=?, ~title, ()) =>