Skip to content

Commit 0c4f58d

Browse files
authored
refactor: rename example to paper-example (#2509)
# Summary Rename example app to match the pattern.
1 parent 36aecda commit 0c4f58d

File tree

68 files changed

+300
-710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+300
-710
lines changed

.github/workflows/android-build-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- 'android/**'
77
- 'src/fabric/**'
88
- 'package.json'
9-
- 'apps/example/android/**'
10-
- 'apps/example/package.json'
9+
- 'apps/paper-example/android/**'
10+
- 'apps/paper-example/package.json'
1111
- 'apps/fabric-example/android/**'
1212
- 'apps/fabric-example/package.json'
1313
push:
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
working-directory: [example, fabric-example]
23+
working-directory: [paper-example, fabric-example]
2424
fail-fast: false
2525
concurrency:
2626
group: android-${{ matrix.working-directory }}-${{ github.ref }}

.github/workflows/e2e-android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
paths:
55
- .github/workflows/e2e-android.yml
6-
- apps/example/**
6+
- apps/common/example/**
77
- android/**
88
- src/**
99
- e2e/**
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: macos-12
1818
timeout-minutes: 60
1919
env:
20-
WORKING_DIRECTORY: example
20+
WORKING_DIRECTORY: paper-example
2121
API_LEVEL: 34
2222
SYSTEM_IMAGES: system-images;android-34;google_apis;x86_64
2323
AVD_NAME: rn-svg-avd

.github/workflows/e2e-ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
timeout-minutes: 60
2020
strategy:
2121
matrix:
22-
working-directory: [example]
22+
working-directory: [paper-example]
2323
fail-fast: false
2424
env:
2525
DEVICE: iPhone 16 Pro

.github/workflows/ios-build-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- apple/**
88
- src/fabric/**
99
- package.json
10-
- apps/example/package.json
11-
- apps/example/ios/**
10+
- apps/paper-example/package.json
11+
- apps/paper-example/ios/**
1212
- apps/fabric-example/package.json
1313
- apps/fabric-example/ios/**
1414
push:
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: macos-14
2222
strategy:
2323
matrix:
24-
working-directory: [example, fabric-example]
24+
working-directory: [paper-example, fabric-example]
2525
fail-fast: false
2626
concurrency:
2727
group: ios-${{ matrix.working-directory }}-${{ github.ref }}

README.md

Lines changed: 1 addition & 1 deletion

apps/common/example/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Sample React Native App for react-native-svg library
3-
* https://github.com/software-mansion/react-native-svg/tree/main/apps/examples
3+
* https://github.com/software-mansion/react-native-svg/tree/main/apps/common/example
44
*/
55
'use strict';
66

apps/common/tsconfig.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@
88
"react-native-svg/css": ["../../src/css/index.tsx"],
99
"react-native-svg/filter-image": ["../../src/filter-image/index.tsx"],
1010
"react-native-reanimated": [
11-
"../example/node_modules/react-native-reanimated"
11+
"../fabric-example/node_modules/react-native-reanimated"
1212
],
1313
"react-native-view-shot": [
14-
"../example/node_modules/react-native-view-shot"
14+
"../fabric-example/node_modules/react-native-view-shot"
15+
],
16+
"@react-navigation/*": [
17+
"../fabric-example/node_modules/@react-navigation/*"
1518
],
16-
"@react-navigation/*": ["../example/node_modules/@react-navigation/*"],
1719
"react-native-gesture-handler": [
18-
"../example/node_modules/react-native-gesture-handler"
20+
"../fabric-example/node_modules/react-native-gesture-handler"
1921
],
2022
"@react-native-async-storage/async-storage": [
21-
"../example/node_modules/@react-native-async-storage/async-storage"
23+
"../fabric-example/node_modules/@react-native-async-storage/async-storage"
2224
]
2325
}
2426
},

apps/example/android/app/src/main/res/values/strings.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/example/app.json

Lines changed: 0 additions & 4 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)