-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from rcaferati/review-demo-and-docs
Reviewed demo and docs
- Loading branch information
Showing
26 changed files
with
595 additions
and
167 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"devToolsPort": 19002 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"hostType": "lan", | ||
"lanType": "ip", | ||
"dev": true, | ||
"minify": false, | ||
"urlRandomness": null | ||
} |
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,9 +1,9 @@ | ||
{ | ||
"devToolsPort": 19002, | ||
"expoServerPort": 19000, | ||
"packagerPort": 19001, | ||
"packagerPid": 5005, | ||
"expoServerNgrokUrl": "https://in-qqr.rcaferati.demo.exp.direct", | ||
"packagerNgrokUrl": "https://packager.in-qqr.rcaferati.demo.exp.direct", | ||
"ngrokPid": 5019 | ||
"expoServerPort": null, | ||
"packagerPort": null, | ||
"packagerPid": null, | ||
"expoServerNgrokUrl": null, | ||
"packagerNgrokUrl": null, | ||
"ngrokPid": null | ||
} |
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,8 +1,8 @@ | ||
export { default as Example1 } from "./examples/example-1"; | ||
export { default as Example2 } from "./examples/example-2"; | ||
export { default as Example3 } from "./examples/example-3"; | ||
export { default as Example4 } from "./examples/example-4"; | ||
export { default as Example5 } from "./examples/example-5"; | ||
export { default as Example6 } from "./examples/example-6"; | ||
export { default as Theme1 } from "./scenes/theme-1"; | ||
export { default as Theme2 } from "./scenes/theme-2"; | ||
export { default as Theme3 } from "./scenes/theme-3"; | ||
export { default as Theme4 } from "./scenes/theme-4"; | ||
export { default as Theme5 } from "./scenes/theme-5"; | ||
export { default as Theme6 } from "./scenes/theme-6"; | ||
export { default as Example } from "./example"; | ||
export { default as RootStack } from "./rootStack"; |
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import React from "react"; | ||
import { StyleSheet, View, Text } from "react-native"; | ||
import AwesomeButton from "react-native-really-awesome-button/src/themes/blue"; | ||
// import AwesomeButton from "../../src/themes/blue"; | ||
import Container from "../container"; | ||
import Section from "../section"; | ||
import { | ||
AntDesign, | ||
FontAwesome, | ||
MaterialCommunityIcons | ||
} from "@expo/vector-icons"; | ||
import { LinearGradient } from "expo"; | ||
|
||
export default function progress({ ButtonComponent }) { | ||
return ( | ||
<Container> | ||
<Section title="Labeled Buttons"> | ||
<AwesomeButton | ||
style={styles.button} | ||
progress | ||
onPress={next => { | ||
setTimeout(() => { | ||
next(); | ||
}, 1000); | ||
}} | ||
type="primary" | ||
width={200} | ||
> | ||
Progress | ||
</AwesomeButton> | ||
<AwesomeButton | ||
style={styles.button} | ||
progress | ||
onPress={next => { | ||
setTimeout(() => { | ||
next(); | ||
}, 2000); | ||
}} | ||
type="primary" | ||
width={200} | ||
progressLoadingTime={6000} | ||
> | ||
Slower Progress | ||
</AwesomeButton> | ||
</Section> | ||
</Container> | ||
); | ||
} | ||
|
||
progress.navigationOptions = ({ navigation }) => { | ||
return { | ||
title: "Progress Examples", | ||
headerStyle: { | ||
backgroundColor: "#1390da" | ||
}, | ||
headerTintColor: "#FFF", | ||
headerTitleStyle: { | ||
fontWeight: "bold" | ||
} | ||
}; | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
button: { | ||
marginTop: 8, | ||
marginBottom: 8 | ||
}, | ||
text: { | ||
fontWeight: "bold", | ||
color: "white" | ||
}, | ||
iconLeft: { marginRight: 8 } | ||
}); |
Oops, something went wrong.