-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
139 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
open ReactNative; | ||
open Styles; | ||
|
||
[@react.component] | ||
let make = (~liked=true) => { | ||
Style.( | ||
<Horizontal | ||
style={ | ||
ViewStyle({ | ||
justifyContent: `spaceBetween, | ||
paddingHorizontal: 12.->dp, | ||
paddingVertical: 10.->dp, | ||
}) | ||
}> | ||
<Horizontal | ||
style={Style.style( | ||
~justifyContent=`spaceBetween, | ||
~paddingHorizontal=12.->dp, | ||
~paddingVertical=10.->dp, | ||
(), | ||
)}> | ||
<Horizontal | ||
style={Style.style(~width=90.->dp, ~justifyContent=`spaceBetween, ())}> | ||
<Icons.Ionicons | ||
name={liked ? "md-heart" : "md-heart-empty"} | ||
size=26 | ||
color={liked ? "#E06666" : "#333"} | ||
/> | ||
<Icons.EvilIcons name="comment" size=32 color="#333" /> | ||
<Icons.Feather name="send" size=22 color="#777" /> | ||
</Horizontal> | ||
<Icons.FontAwesome name="bookmark-o" size=24 color="grey" /> | ||
style={ViewStyle({width: 90.->dp, justifyContent: `spaceBetween})}> | ||
<Icons.Ionicons | ||
name={liked ? "md-heart" : "md-heart-empty"} | ||
size=26 | ||
color={liked ? "#E06666" : "#333"} | ||
/> | ||
<Icons.EvilIcons name="comment" size=32 color="#333" /> | ||
<Icons.Feather name="send" size=22 color="#777" /> | ||
</Horizontal> | ||
); | ||
}; | ||
<Icons.FontAwesome name="bookmark-o" size=24 color="grey" /> | ||
</Horizontal>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,37 @@ | ||
open ReactNative; | ||
open Typography; | ||
|
||
open Styles; | ||
open PostData; | ||
|
||
[@react.component] | ||
let make = (~image as uri, ~location, ~username) => { | ||
Style.( | ||
<Horizontal | ||
style={Style.style( | ||
~justifyContent=`spaceBetween, | ||
~paddingHorizontal=7.->dp, | ||
~paddingVertical=10.->dp, | ||
(), | ||
)}> | ||
<Horizontal> | ||
<TouchableWithoutFeedback | ||
onPress={_ => Js.log("Click Profile Image")}> | ||
<CircularImage | ||
size=32. | ||
source=Image.(Source.fromUriSource(uriSource(~uri, ()))) | ||
/> | ||
</TouchableWithoutFeedback> | ||
<View | ||
style={Style.style( | ||
~paddingLeft=7.->dp, | ||
~justifyContent=`center, | ||
(), | ||
)}> | ||
<T2 value=username /> | ||
<T3 | ||
value={ | ||
switch (location) { | ||
| Some({city: Some(city), country: Some(country)}) => {j|$city, $country|j} | ||
| _ => "" | ||
} | ||
<Horizontal | ||
style={ | ||
ViewStyle({ | ||
justifyContent: `spaceBetween, | ||
paddingHorizontal: 7.->dp, | ||
paddingVertical: 10.->dp, | ||
}) | ||
}> | ||
<Horizontal> | ||
<TouchableWithoutFeedback onPress={_ => Js.log("Click Profile Image")}> | ||
<CircularImage | ||
size=32. | ||
source=Image.(Source.fromUriSource(uriSource(~uri, ()))) | ||
/> | ||
</TouchableWithoutFeedback> | ||
<View style={ViewStyle({paddingLeft: 7.->dp, justifyContent: `center})}> | ||
<T2 value=username /> | ||
<T3 | ||
value={ | ||
switch (location) { | ||
| Some({city: Some(city), country: Some(country)}) => {j|$city, $country|j} | ||
| _ => "" | ||
} | ||
/> | ||
</View> | ||
</Horizontal> | ||
<MoreButton /> | ||
} | ||
/> | ||
</View> | ||
</Horizontal> | ||
); | ||
}; | ||
<MoreButton /> | ||
</Horizontal>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
open ReactNative; | ||
open Style; | ||
open Styles; | ||
|
||
[@react.component] | ||
let make = (~size=24) => | ||
<View | ||
style={Style.style( | ||
~justifyContent=`center, | ||
~width=size->float_of_int->dp, | ||
(), | ||
)}> | ||
style={ | ||
ViewStyle({justifyContent: `center, width: size->float_of_int->dp}) | ||
}> | ||
<IonIcons name="ios-more" size color="grey" /> | ||
</View>; | ||
</View>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
open ReactNative; | ||
open Style; | ||
open Styles; | ||
include View; | ||
|
||
let style = centered => | ||
ViewStyle({ | ||
backgroundColor: "#fff", | ||
flex: 1., | ||
justifyContent: centered ? `center : `flexStart, | ||
alignItems: centered ? `center : `flexStart, | ||
}); | ||
|
||
let makeProps = (~centered=false, ~style as additionalStyle=Style.style()) => | ||
makeProps( | ||
~style= | ||
list([ | ||
style( | ||
~backgroundColor="#fff", | ||
~flex=1., | ||
~justifyContent=centered ? `center : `flexStart, | ||
~alignItems=centered ? `center : `flexStart, | ||
(), | ||
), | ||
additionalStyle, | ||
]), | ||
); | ||
makeProps(~style=list([style(centered), additionalStyle])); |
Oops, something went wrong.