Skip to content

Commit f27081b

Browse files
committed
Added EXPO RN app example wireframe.
1 parent 3efd3b9 commit f27081b

File tree

12 files changed

+6578
-0
lines changed

12 files changed

+6578
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
3+
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
4+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node_modules/
2+
.expo/
3+
npm-debug.*
4+
*.jks
5+
*.p8
6+
*.p12
7+
*.key
8+
*.mobileprovision
9+
*.orig.*
10+
web-build/
11+
12+
# macOS
13+
.DS_Store

example/EXPO/fab-example/App.tsx

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import { StatusBar } from "expo-status-bar";
2+
import React from "react";
3+
import { StyleSheet, Text, View } from "react-native";
4+
import ActionButton from "react-native-fab-ts"
5+
export default function App() {
6+
return (
7+
<View style={styles.container}>
8+
<Text>Open up App.tsx to start working on your app!</Text>
9+
<StatusBar style="auto" />
10+
<ActionButton buttonColor="rgba(231,76,60,1)">
11+
<ActionButton.Item
12+
buttonColor="#9b59b6"
13+
title="New Task"
14+
onPress={() => console.log("notes tapped!")}
15+
>
16+
<Icon name="me-create" style={styles.actionButtonIcon} />
17+
</ActionButton.Item>
18+
<ActionButton.Item
19+
buttonColor="#3498db"
20+
title="Notifications"
21+
onPress={() => {}}
22+
>
23+
<Icon name="me-notifications-off" style={styles.actionButtonIcon} />
24+
</ActionButton.Item>
25+
<ActionButton.Item
26+
buttonColor="#1abc9c"
27+
title="All Tasks"
28+
onPress={() => {}}
29+
>
30+
<Icon name="md-done-all" style={styles.actionButtonIcon} />
31+
</ActionButton.Item>
32+
</ActionButton>
33+
</View>
34+
);
35+
}
36+
37+
const styles = StyleSheet.create({
38+
container: {
39+
flex: 1,
40+
backgroundColor: "#fff",
41+
alignItems: "center",
42+
justifyContent: "center",
43+
},
44+
actionButtonIcon: {
45+
fontSize: 20,
46+
height: 22,
47+
color: "white",
48+
},
49+
});

example/EXPO/fab-example/app.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"expo": {
3+
"name": "fab-example",
4+
"slug": "fab-example",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"splash": {
9+
"image": "./assets/splash.png",
10+
"resizeMode": "contain",
11+
"backgroundColor": "#ffffff"
12+
},
13+
"updates": {
14+
"fallbackToCacheTimeout": 0
15+
},
16+
"assetBundlePatterns": [
17+
"**/*"
18+
],
19+
"ios": {
20+
"supportsTablet": true
21+
},
22+
"android": {
23+
"adaptiveIcon": {
24+
"foregroundImage": "./assets/adaptive-icon.png",
25+
"backgroundColor": "#FFFFFF"
26+
}
27+
},
28+
"web": {
29+
"favicon": "./assets/favicon.png"
30+
}
31+
}
32+
}
17.1 KB
Loading
1.43 KB
Loading
21.9 KB
Loading
47.3 KB
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = function(api) {
2+
api.cache(true);
3+
return {
4+
presets: ['babel-preset-expo'],
5+
};
6+
};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"main": "node_modules/expo/AppEntry.js",
3+
"scripts": {
4+
"start": "expo start",
5+
"android": "expo start --android",
6+
"ios": "expo start --ios",
7+
"web": "expo start --web",
8+
"eject": "expo eject"
9+
},
10+
"dependencies": {
11+
"expo": "~41.0.1",
12+
"expo-status-bar": "~1.0.4",
13+
"react": "16.13.1",
14+
"react-dom": "16.13.1",
15+
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
16+
"react-native-web": "~0.13.12",
17+
"react-native-fab-ts": "../../../"
18+
},
19+
"devDependencies": {
20+
"@babel/core": "^7.9.0",
21+
"@types/react": "~16.9.35",
22+
"@types/react-native": "~0.63.2",
23+
"typescript": "~4.0.0"
24+
},
25+
"private": true
26+
}

0 commit comments

Comments
 (0)