Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions apps/nlp/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"expo": {
"name": "nlp",
"slug": "nlp",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icons/icon.png",
"userInterfaceStyle": "light",
"newArchEnabled": true,
"scheme": "rne-nlp",
"splash": {
"image": "./assets/icons/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.anonymous.nlp"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/icons/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.anonymous.nlp"
},
"web": {
"favicon": "./assets/icons/favicon.png"
},
"plugins": [
"expo-router",
[
"expo-build-properties",
{
"android": {
"minSdkVersion": 26
},
"ios": {
"deploymentTarget": "17.0"
}
}
]
]
}
}
32 changes: 32 additions & 0 deletions apps/nlp/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Drawer } from 'expo-router/drawer';
import { ColorPalette } from '../theme';
import React from 'react';

export default function Layout() {
return (
<Drawer
screenOptions={{
drawerActiveTintColor: ColorPalette.primary,
drawerInactiveTintColor: '#888',
headerTintColor: ColorPalette.primary,
headerTitleStyle: { color: ColorPalette.primary },
}}
>
<Drawer.Screen
name="index"
options={{
drawerLabel: () => null,
title: 'Main Menu',
drawerItemStyle: { display: 'none' },
}}
/>
<Drawer.Screen
name="tokenizer/index"
options={{
drawerLabel: 'Tokenizer',
title: 'Tokenizer',
}}
/>
</Drawer>
);
}
51 changes: 51 additions & 0 deletions apps/nlp/app/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { useRouter } from 'expo-router';
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
import { ColorPalette } from '../theme';
import ExecutorchLogo from '../assets/icons/executorch.svg';

export default function Home() {
const router = useRouter();

return (
<View style={styles.container}>
<ExecutorchLogo width={64} height={64} />
<Text style={styles.headerText}>Select a demo</Text>
<View style={styles.buttonContainer}>
<TouchableOpacity style={styles.button} onPress={() => router.navigate('tokenizer/')}>
<Text style={styles.buttonText}>Tokenizer</Text>
</TouchableOpacity>
</View>
</View>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#fff',
},
headerText: {
fontSize: 18,
color: ColorPalette.strongPrimary,
margin: 20,
},
buttonContainer: {
width: '80%',
justifyContent: 'space-evenly',
marginBottom: 20,
},
button: {
backgroundColor: ColorPalette.strongPrimary,
borderRadius: 8,
padding: 14,
alignItems: 'center',
marginBottom: 12,
},
buttonText: {
color: 'white',
fontSize: 16,
fontWeight: '600',
},
});
Loading