Skip to content

Commit cc52889

Browse files
authored
Merge pull request #2 from AdobeDevXSC/react-native-app
React native app
2 parents c3a3640 + e4156af commit cc52889

39 files changed

+12806
-1
lines changed

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,39 @@ helix-importer-ui
77
.DS_Store
88
*.bak
99
.idea
10+
11+
# -----------------------
12+
# React Native (native-banner) specific
13+
# -----------------------
14+
/native-banner/node_modules/
15+
/native-banner/.expo/
16+
/native-banner/.expo-shared/
17+
/native-banner/ios/build/
18+
/native-banner/android/app/build/
19+
/native-banner/android/.gradle/
20+
/native-banner/ios/DerivedData/
21+
/native-banner/.env
22+
/native-banner/dist/
23+
/native-banner/web-build/
24+
25+
# -----------------------
26+
# IDE / Editor junk
27+
# -----------------------
28+
.vscode/
29+
*.swp
30+
*.swo
31+
*.orig
32+
*.rej
33+
34+
# Xcode workspace & settings
35+
/native-banner/ios/*.xcworkspace/
36+
/native-banner/ios/*.xcodeproj/project.xcworkspace/
37+
/native-banner/ios/*.xcodeproj/xcuserdata/
38+
/native-banner/ios/Podfile.lock
39+
40+
# Android Studio / IntelliJ
41+
/native-banner/android/.idea/
42+
/native-banner/android/local.properties
43+
44+
# macOS metadata
45+
.DS_Store

blocks/promotion/promotion.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272

7373
.promotion h3 {
7474
font-size: 36px;
75+
max-width: 400px;
7576
}
7677

7778
.promotion h4 {
@@ -124,7 +125,7 @@
124125
position: relative;
125126
z-index: 1;
126127
color: #fff;
127-
max-width: 50%;
128+
max-width: 600px;
128129
padding: 4rem;
129130
margin: 0;
130131
box-sizing: border-box;

native-banner/.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
.kotlin/
14+
*.orig.*
15+
*.jks
16+
*.p8
17+
*.p12
18+
*.key
19+
*.mobileprovision
20+
21+
# Metro
22+
.metro-health-check*
23+
24+
# debug
25+
npm-debug.*
26+
yarn-debug.*
27+
yarn-error.*
28+
29+
# macOS
30+
.DS_Store
31+
*.pem
32+
33+
# local env files
34+
.env*.local
35+
36+
# typescript
37+
*.tsbuildinfo
38+
39+
app-example
40+
41+
# generated native folders
42+
/ios
43+
/android

native-banner/App.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from "react";
2+
import { SafeAreaView, SafeAreaProvider } from "react-native-safe-area-context";
3+
import PromoBanner from "./src/components/PromoBanner";
4+
5+
export default function App() {
6+
return (
7+
<SafeAreaProvider>
8+
<SafeAreaView style={{ height: '100%', width: '100%', padding: 16}}>
9+
<PromoBanner />
10+
</SafeAreaView>
11+
</SafeAreaProvider>
12+
);
13+
}

native-banner/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Welcome to your Expo app 👋
2+
3+
This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
4+
5+
## Get started
6+
7+
1. Install dependencies
8+
9+
```bash
10+
npm install
11+
```
12+
13+
2. Start the app
14+
15+
```bash
16+
npx expo start
17+
```
18+
19+
In the output, you'll find options to open the app in a
20+
21+
- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
22+
- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
23+
- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
24+
- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo
25+
26+
You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
27+
28+
## Get a fresh project
29+
30+
When you're ready, run:
31+
32+
```bash
33+
npm run reset-project
34+
```
35+
36+
This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.
37+
38+
## Learn more
39+
40+
To learn more about developing your project with Expo, look at the following resources:
41+
42+
- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
43+
- [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.
44+
45+
## Join the community
46+
47+
Join our community of developers creating universal apps.
48+
49+
- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
50+
- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.

native-banner/app.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"expo": {
3+
"name": "native-banner",
4+
"slug": "native-banner",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/images/icon.png",
8+
"scheme": "nativebanner",
9+
"userInterfaceStyle": "automatic",
10+
"newArchEnabled": true,
11+
"ios": {
12+
"supportsTablet": true
13+
},
14+
"android": {
15+
"adaptiveIcon": {
16+
"backgroundColor": "#E6F4FE",
17+
"foregroundImage": "./assets/images/android-icon-foreground.png",
18+
"backgroundImage": "./assets/images/android-icon-background.png",
19+
"monochromeImage": "./assets/images/android-icon-monochrome.png"
20+
},
21+
"edgeToEdgeEnabled": true,
22+
"predictiveBackGestureEnabled": false
23+
},
24+
"web": {
25+
"output": "single",
26+
"favicon": "./assets/images/favicon.png"
27+
},
28+
"plugins": [
29+
[
30+
"expo-splash-screen",
31+
{
32+
"image": "./assets/images/splash-icon.png",
33+
"imageWidth": 200,
34+
"resizeMode": "contain",
35+
"backgroundColor": "#ffffff",
36+
"dark": {
37+
"backgroundColor": "#000000"
38+
}
39+
}
40+
]
41+
],
42+
"experiments": {
43+
"typedRoutes": true,
44+
"reactCompiler": true
45+
}
46+
}
47+
}
17.1 KB
Loading
76.9 KB
Loading
4.04 KB
Loading
1.1 KB
Loading

0 commit comments

Comments
 (0)