Skip to content

Commit d34baa2

Browse files
authored
Merge pull request #124 from flexbox/feature/ep-2
add UIKitten
2 parents 521fb5f + b008da0 commit d34baa2

27 files changed

+414
-0
lines changed

hackathon/ui-tier-list/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# UI Tiers List Twitch show
2+
3+
```console
4+
cp -R template ReactNativeElements
5+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "react-native-wcandillon",
3+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_modules/
2+
.expo/
3+
dist/
4+
npm-debug.*
5+
*.jks
6+
*.p8
7+
*.p12
8+
*.key
9+
*.mobileprovision
10+
*.orig.*
11+
web-build/
12+
13+
# macOS
14+
.DS_Store
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { StatusBar } from "expo-status-bar";
2+
import { StyleSheet, View } from "react-native";
3+
import { Provider as PaperProvider } from "react-native-paper";
4+
5+
import { LoginScreen } from "./LoginScreen";
6+
7+
// eslint-disable-next-line import/no-default-export
8+
export default function App() {
9+
return (
10+
<PaperProvider>
11+
<View style={styles.container}>
12+
<StatusBar style="auto" />
13+
<LoginScreen />
14+
</View>
15+
</PaperProvider>
16+
);
17+
}
18+
19+
const styles = StyleSheet.create({
20+
container: {
21+
flex: 1,
22+
},
23+
});
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import { StyleSheet, View } from "react-native";
2+
import React from "react";
3+
import { Button, Text, TextInput, useTheme } from "react-native-paper";
4+
5+
interface Props {}
6+
7+
export const LoginScreen = (props: Props) => {
8+
const theme = useTheme();
9+
10+
return (
11+
<View>
12+
<View
13+
style={[
14+
styles.headerContainer,
15+
{ backgroundColor: theme.colors.primary },
16+
]}
17+
>
18+
<Text
19+
variant="headlineMedium"
20+
style={{ color: theme.colors.onPrimary }}
21+
>
22+
ReactNativePaper
23+
</Text>
24+
<Text variant="bodyMedium" style={{ color: theme.colors.onPrimary }}>
25+
Sign in to your account
26+
</Text>
27+
</View>
28+
<View style={styles.mainContainer}>
29+
<TextInput
30+
mode="outlined"
31+
style={styles.input}
32+
placeholder="Email"
33+
keyboardType="email-address"
34+
textContentType="emailAddress"
35+
autoCapitalize="none"
36+
autoCorrect={false}
37+
autoComplete="email"
38+
right={<TextInput.Icon icon="face-woman" />}
39+
/>
40+
<TextInput
41+
mode="outlined"
42+
style={styles.input}
43+
placeholder="Password"
44+
secureTextEntry={true}
45+
right={<TextInput.Icon icon="eye-outline" />}
46+
returnKeyType="done"
47+
/>
48+
<Button mode="contained" onPress={() => console.log("Pressed")}>
49+
Sign In
50+
</Button>
51+
<Button mode="text" onPress={() => console.log("Pressed")}>
52+
Don't have an account? Create
53+
</Button>
54+
</View>
55+
</View>
56+
);
57+
};
58+
59+
const styles = StyleSheet.create({
60+
headerContainer: {
61+
alignItems: "center",
62+
paddingVertical: 48,
63+
},
64+
mainContainer: {
65+
paddingHorizontal: 24,
66+
},
67+
input: {
68+
marginBottom: 16,
69+
},
70+
});
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Getting started
2+
3+
```bash
4+
yarn
5+
yarn ios
6+
```
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"expo": {
3+
"name": "ReactNativePaper",
4+
"slug": "ReactNativePaper",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"userInterfaceStyle": "light",
9+
"splash": {
10+
"image": "./assets/splash.png",
11+
"resizeMode": "contain",
12+
"backgroundColor": "#ffffff"
13+
},
14+
"updates": {
15+
"fallbackToCacheTimeout": 0
16+
},
17+
"assetBundlePatterns": [
18+
"**/*"
19+
],
20+
"ios": {
21+
"supportsTablet": true
22+
},
23+
"android": {
24+
"adaptiveIcon": {
25+
"foregroundImage": "./assets/adaptive-icon.png",
26+
"backgroundColor": "#FFFFFF"
27+
}
28+
},
29+
"web": {
30+
"favicon": "./assets/favicon.png"
31+
}
32+
}
33+
}
17.1 KB
Loading
1.43 KB
Loading
21.9 KB
Loading

0 commit comments

Comments
 (0)