Skip to content

Commit 6a1cc17

Browse files
authored
feat(example): add multiple component examples app (#176)
1 parent 092656d commit 6a1cc17

27 files changed

+8574
-1
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.yarn
2+
example/android
3+
example/ios

example/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.binlog
2+
*.hprof
3+
*.xcworkspace/
4+
*.zip
5+
.DS_Store
6+
.gradle/
7+
.idea/
8+
.vs/
9+
Pods/
10+
build/
11+
dist/
12+
local.properties
13+
msbuild.binlog
14+
node_modules/

example/.watchmanconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

example/android/build.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
buildscript {
2+
def androidTestAppDir = "../node_modules/react-native-test-app/android"
3+
apply(from: "${androidTestAppDir}/dependencies.gradle")
4+
apply(from: "${androidTestAppDir}/test-app-util.gradle")
5+
6+
repositories {
7+
mavenCentral()
8+
google()
9+
}
10+
11+
dependencies {
12+
classpath("com.android.tools.build:gradle:${androidPluginVersion}")
13+
14+
if (isNewArchitectureEnabled(project)) {
15+
classpath("com.facebook.react:react-native-gradle-plugin")
16+
classpath("de.undercouch:gradle-download-task:5.1.2")
17+
}
18+
}
19+
}
20+
21+
allprojects {
22+
repositories {
23+
maven {
24+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
25+
url("${rootDir}/../node_modules/react-native/android")
26+
}
27+
mavenCentral()
28+
google()
29+
}
30+
}

example/android/gradle.properties

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Project-wide Gradle settings.
2+
3+
# IDE (e.g. Android Studio) users:
4+
# Gradle settings configured through the IDE *will override*
5+
# any settings specified in this file.
6+
7+
# For more details on how to configure your build environment visit
8+
# http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+
# Specifies the JVM arguments used for the Gradle Daemon. The setting is
11+
# particularly useful for configuring JVM memory settings for build performance.
12+
# This does not affect the JVM settings for the Gradle client VM.
13+
# The default is `-Xmx512m -XX:MaxMetaspaceSize=256m`.
14+
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
15+
16+
# When configured, Gradle will fork up to org.gradle.workers.max JVMs to execute
17+
# projects in parallel. To learn more about parallel task execution, see the
18+
# section on Gradle build performance:
19+
# https://docs.gradle.org/current/userguide/performance.html#parallel_execution.
20+
# Default is `false`.
21+
#org.gradle.parallel=true
22+
23+
# AndroidX package structure to make it clearer which packages are bundled with the
24+
# Android operating system, and which are packaged with your app's APK
25+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
26+
android.useAndroidX=true
27+
# Automatically convert third-party libraries to use AndroidX
28+
android.enableJetifier=true
29+
30+
# Version of Flipper to use with React Native. Default value is whatever React
31+
# Native defaults to. To disable Flipper, set it to `false`.
32+
#FLIPPER_VERSION=0.125.0
33+
34+
# Enable Fabric at runtime.
35+
#USE_FABRIC=1
36+
37+
# Enable new architecture, i.e. Fabric + TurboModule - implies USE_FABRIC=1.
38+
# Note that this is incompatible with web debugging.
39+
#newArchEnabled=true
40+
41+
# Uncomment the line below if building react-native from source
42+
#ANDROID_NDK_VERSION=21.4.7075529
43+
44+
# Version of Kotlin to build against.
45+
#KOTLIN_VERSION=1.7.10
59.3 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

example/android/gradlew

Lines changed: 240 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)