Skip to content

Commit

Permalink
Update example app project (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntorionbearstudio authored Aug 26, 2024
1 parent 72d7822 commit b463917
Show file tree
Hide file tree
Showing 67 changed files with 18,730 additions and 11,071 deletions.
9 changes: 0 additions & 9 deletions example/.eslintrc

This file was deleted.

11 changes: 0 additions & 11 deletions example/.expo-shared/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions example/.expo-shared/assets.json

This file was deleted.

21 changes: 19 additions & 2 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# XDE
#
node_modules/
.expo/
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/

# macOS
.DS_Store

# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli

expo-env.d.ts
# @end expo-cli
1 change: 0 additions & 1 deletion example/App.js

This file was deleted.

3 changes: 0 additions & 3 deletions example/App.web.js

This file was deleted.

50 changes: 50 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Welcome to your Expo app 👋

This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).

## Get started

1. Install dependencies

```bash
npm install
```

2. Start the app

```bash
npx expo start
```

In the output, you'll find options to open the app in a

- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo

You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).

## Get a fresh project

When you're ready, run:

```bash
npm run reset-project
```

This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.

## Learn more

To learn more about developing your project with Expo, look at the following resources:

- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.

## Join the community

Join our community of developers creating universal apps.

- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.
38 changes: 27 additions & 11 deletions example/app.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
{
"expo": {
"name": "React Native Ficus UI Example",
"description": "Example app for React Native Ficus UI",
"slug": "react-native-ficus-ui-example",
"privacy": "public",
"name": "update-example",
"slug": "update-example",
"version": "1.0.0",
"orientation": "default",
"icon": "./assets/images/favicon.png",
"primaryColor": "#cccccc",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "ficus-ui-example",
"userInterfaceStyle": "automatic",
"notification": {
"icon": "https://s3.amazonaws.com/exp-us-standard/placeholder-push-icon-blue-circle.png",
"color": "#000000"
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"platforms": ["android", "ios", "web"]
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"bundler": "metro",
"output": "static",
"favicon": "./assets/images/favicon.png"
},
"plugins": ["expo-router"],
"experiments": {
"typedRoutes": true
}
}
}
12 changes: 12 additions & 0 deletions example/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ThemeProvider } from 'react-native-ficus-ui';
import { Stack } from 'expo-router';

export default function RootLayout() {
return (
<ThemeProvider>

Check warning on line 6 in example/app/_layout.tsx

View workflow job for this annotation

GitHub Actions / lint

'React' must be in scope when using JSX
<Stack screenOptions={{ headerShown: false }}>

Check warning on line 7 in example/app/_layout.tsx

View workflow job for this annotation

GitHub Actions / lint

'React' must be in scope when using JSX
<Stack.Screen name="index" />

Check warning on line 8 in example/app/_layout.tsx

View workflow job for this annotation

GitHub Actions / lint

'React' must be in scope when using JSX
</Stack>
</ThemeProvider>
);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView } from 'react-native';
import { Box, ScrollBox, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const BoxComponent = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView, ScrollView } from 'react-native';
import { Button, Text, VStack } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const ButtonComponent = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView } from 'react-native';
import { Box, Center, ScrollBox, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const CenterComponent = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView } from 'react-native';
import { Box, Checkbox, CheckboxGroup, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const CheckboxComponent = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView } from 'react-native';
import { Divider, Box, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const DividerComponent = () => {
return (
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ExampleSection from '@/src/ExampleSection';
import React from 'react';
import { SafeAreaView, ScrollView } from 'react-native';
import { Icon, HStack, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';

const IconComponent = () => {
return (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView } from 'react-native';
import { Icon, Input, Textarea, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const InputComponent = () => {
return (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Text,
useDisclosure,
} from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const ModalComponent = () => {
const { isOpen, onOpen, onClose } = useDisclosure();
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView } from 'react-native';
import { Box, Radio, RadioGroup, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const RadioComponent = () => {
return (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView } from 'react-native';
import { Box, ScrollBox, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const ScrollBoxComponent = () => {
return (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import { SafeAreaView } from 'react-native';
import { Button, Select, Option, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const SelectComponent = () => {
const [selectValue, setSelectedValue] = useState(null);
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ScrollBox,
Text,
} from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const StackComponent = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import { SafeAreaView } from 'react-native';
import { Switch, ScrollBox, Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const SwitchComponent = () => {
const [on, toggle] = useState(false);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView, ScrollView } from 'react-native';
import { Text } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const TextComponent = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { SafeAreaView } from 'react-native';
import { Button, Text, VStack, useToast } from 'react-native-ficus-ui';
import ExampleSection from '../ExampleSection';
import ExampleSection from '@/src/ExampleSection';

const ToastHook = () => {
const { show, hide } = useToast();
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions example/app/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import HomeScreen from '@/src/HomeScreen';

const App = () => {
return <HomeScreen />;
};

export default App;
File renamed without changes.
Binary file removed example/assets/fonts/HanaleiFill-Regular.ttf
Binary file not shown.
Binary file removed example/assets/fonts/Inconsolata-Regular.ttf
Binary file not shown.
Binary file added example/assets/fonts/SpaceMono-Regular.ttf
Binary file not shown.
Binary file added example/assets/images/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed example/assets/images/avatar.png
Binary file not shown.
Binary file removed example/assets/images/beach.jpg
Binary file not shown.
Binary file removed example/assets/images/bridge.jpg
Binary file not shown.
Binary file removed example/assets/images/chameleon.jpg
Binary file not shown.
Binary file removed example/assets/images/city.jpg
Binary file not shown.
Binary file removed example/assets/images/email-icon.png
Binary file not shown.
Binary file removed example/assets/images/favorite.png
Binary file not shown.
Binary file removed example/assets/images/forest.jpg
Binary file not shown.
Binary file added example/assets/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/assets/images/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed example/assets/images/strawberries.jpg
Binary file not shown.
Binary file removed example/assets/images/wrecked-ship.jpg
Binary file not shown.
Empty file removed example/assets/styles/fonts.css
Empty file.
8 changes: 1 addition & 7 deletions example/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
const path = require('path');
const pak = require('../package.json');

module.exports = function (api) {
api.cache(true);

return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
alias: {
// For development, we want to alias the library to the source
[pak.name]: path.join(__dirname, '..', pak.source),
'react-native-ficus-ui': '../src',
},
},
],
'react-native-reanimated/plugin',
],
};
};
9 changes: 0 additions & 9 deletions example/index.d.ts

This file was deleted.

Loading

0 comments on commit b463917

Please sign in to comment.