Skip to content

Commit 99042e0

Browse files
committed
upate
1 parent 7ded894 commit 99042e0

32 files changed

+249
-7049
lines changed

hackathon/all-keyboards/.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
expo-env.d.ts
11+
12+
# Native
13+
*.orig.*
14+
*.jks
15+
*.p8
16+
*.p12
17+
*.key
18+
*.mobileprovision
19+
20+
# Metro
21+
.metro-health-check*
22+
23+
# debug
24+
npm-debug.*
25+
yarn-debug.*
26+
yarn-error.*
27+
28+
# macOS
29+
.DS_Store
30+
*.pem
31+
32+
# local env files
33+
.env*.local
34+
35+
# typescript
36+
*.tsbuildinfo
37+
38+
app-example

hackathon/allKeyboard/README.md renamed to hackathon/all-keyboards/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ The blog post overview of [all keyboard types for iOS and Android](https://david
1313
```console
1414
yarn
1515
yarn start
16-
```
16+
```

hackathon/all-keyboards/app.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"expo": {
3+
"name": "all-keyboards",
4+
"slug": "all-keyboards",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/images/icon.png",
8+
"scheme": "myapp",
9+
"userInterfaceStyle": "automatic",
10+
"newArchEnabled": true,
11+
"ios": {
12+
"supportsTablet": true
13+
},
14+
"android": {
15+
"adaptiveIcon": {
16+
"foregroundImage": "./assets/images/adaptive-icon.png",
17+
"backgroundColor": "#ffffff"
18+
}
19+
},
20+
"web": {
21+
"bundler": "metro",
22+
"output": "static",
23+
"favicon": "./assets/images/favicon.png"
24+
},
25+
"plugins": [
26+
"expo-router",
27+
[
28+
"expo-splash-screen",
29+
{
30+
"image": "./assets/images/splash-icon.png",
31+
"imageWidth": 200,
32+
"resizeMode": "contain",
33+
"backgroundColor": "#ffffff"
34+
}
35+
]
36+
],
37+
"experiments": {
38+
"typedRoutes": true
39+
}
40+
}
41+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Stack } from "expo-router";
2+
3+
export default function RootLayout() {
4+
return <Stack screenOptions={{headerShown: false}} />;
5+
}

hackathon/all-keyboards/app/index.tsx

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import { AllKeyboardType } from "@/components/AllKeyboardType";
2+
import { AllReturnKeyType } from "@/components/AllReturnKeyType";
3+
import { Misc } from "@/components/Misc";
4+
5+
import React from "react";
6+
import { useState } from "react";
7+
import { ScrollView, StyleSheet, View } from "react-native";
8+
import { SegmentedButtons } from "react-native-paper";
9+
import { SafeAreaView } from "react-native-safe-area-context";
10+
11+
export default function Index() {
12+
const [activeTabValue, setActiveTabValue] = useState("keyboardType");
13+
14+
return (
15+
<SafeAreaView>
16+
17+
<SegmentedButtons
18+
value={activeTabValue}
19+
onValueChange={setActiveTabValue}
20+
style={{ paddingHorizontal: 12 }}
21+
buttons={[
22+
{
23+
value: "keyboardType",
24+
label: "keyboardType",
25+
},
26+
{
27+
value: "returnKeyType",
28+
label: "returnKeyType",
29+
},
30+
{ value: "misc", label: "misc" },
31+
]}
32+
/>
33+
<ScrollView style={styles.container}>
34+
<View style={styles.separatorSmall} />
35+
{activeTabValue === "keyboardType" && <AllKeyboardType />}
36+
{activeTabValue === "returnKeyType" && <AllReturnKeyType />}
37+
{activeTabValue === "misc" && <Misc />}
38+
<View style={styles.separator} />
39+
</ScrollView>
40+
41+
</SafeAreaView>
42+
);
43+
}
44+
45+
const styles = StyleSheet.create({
46+
container: {
47+
paddingHorizontal: 24,
48+
},
49+
separatorSmall: {
50+
height: 24,
51+
},
52+
separator: {
53+
height: 256,
54+
},
55+
});
Binary file not shown.
1.43 KB
Loading

0 commit comments

Comments
 (0)