This repository was archived by the owner on May 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 7
7
"author" : " Gabriel R. Abreu <grsabreu@gmail.com>" ,
8
8
"license" : " MIT" ,
9
9
"dependencies" : {
10
- "bs-react-native" : " ^0.3 .0" ,
10
+ "bs-react-native" : " ^0.5 .0" ,
11
11
"reason-react" : " ^0.3.0"
12
12
},
13
13
"devDependencies" : {
Original file line number Diff line number Diff line change 1
- open ReactNative ;
1
+ open BsReactNative ;
2
2
3
3
let get = (arg, default) =>
4
4
switch arg {
@@ -8,21 +8,6 @@ let get = (arg, default) =>
8
8
9
9
module type StyledConfig = {type styleParams ; let style : option (styleParams ) => Style . t ; };
10
10
11
- /* TODO Use a module functor later to reuse the module creation */
12
- /* module Create (Component: { */
13
- /* type params; */
14
- /* let make: style::Style.t? => params; */
15
- /* }) => { */
16
- /* module Styled (Config: StyledConfig) => { */
17
- /* let make ::styled=? style::additionalStyle=? => */
18
- /* Component.make */
19
- /* style::( */
20
- /* Style.combine */
21
- /* (Config.style styled) */
22
- /* (Utils.get additionalStyle Style.(style [])) */
23
- /* ); */
24
- /* }; */
25
- /* }; */
26
11
module View = (Config : StyledConfig ) => {
27
12
let make = (~styled=?, ~style as additionalStyle=Style.(style([] ))) =>
28
13
View . make(~style= Style . combine(Config . style(styled), additionalStyle));
@@ -69,4 +54,4 @@ module TextInput = (Config: StyledConfig) => {
69
54
module Image = (Config : StyledConfig ) => {
70
55
let make = (~styled=?, ~style as additionalStyle=Style.(style([] ))) =>
71
56
Image . make(~style= Style . combine(Config . style(styled), additionalStyle));
72
- };
57
+ };
You can’t perform that action at this time.
0 commit comments