react-native-universal-keyboard-aware-scrollview 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +387 -0
- package/android/app/build.gradle +182 -0
- package/android/app/debug.keystore +0 -0
- package/android/app/proguard-rules.pro +14 -0
- package/android/app/src/debug/AndroidManifest.xml +7 -0
- package/android/app/src/debugOptimized/AndroidManifest.xml +7 -0
- package/android/app/src/main/AndroidManifest.xml +25 -0
- package/android/app/src/main/java/com/anonymous/reactnativeuniversalkeyboardawarescrollview/MainActivity.kt +61 -0
- package/android/app/src/main/java/com/anonymous/reactnativeuniversalkeyboardawarescrollview/MainApplication.kt +56 -0
- package/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
- package/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
- package/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
- package/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
- package/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
- package/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/android/app/src/main/res/values/colors.xml +6 -0
- package/android/app/src/main/res/values/strings.xml +5 -0
- package/android/app/src/main/res/values/styles.xml +11 -0
- package/android/app/src/main/res/values-night/colors.xml +1 -0
- package/android/build.gradle +89 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/android/gradle.properties +65 -0
- package/android/gradlew +251 -0
- package/android/gradlew.bat +94 -0
- package/android/settings.gradle +39 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/com/universalkeyboard/UniversalKeyboardModule.kt +349 -0
- package/android/src/main/java/com/universalkeyboard/UniversalKeyboardPackage.kt +21 -0
- package/ios/.xcode.env +11 -0
- package/ios/Podfile +60 -0
- package/ios/Podfile.lock +2001 -0
- package/ios/Podfile.properties.json +5 -0
- package/ios/UniversalKeyboard.h +24 -0
- package/ios/UniversalKeyboard.m +413 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/AppDelegate.swift +70 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Images.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Images.xcassets/Contents.json +6 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Images.xcassets/SplashScreenBackground.colorset/Contents.json +20 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Images.xcassets/SplashScreenLegacy.imageset/Contents.json +23 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Images.xcassets/SplashScreenLegacy.imageset/image.png +0 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Images.xcassets/SplashScreenLegacy.imageset/image@2x.png +0 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Images.xcassets/SplashScreenLegacy.imageset/image@3x.png +0 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Info.plist +76 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/PrivacyInfo.xcprivacy +48 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/SplashScreen.storyboard +48 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/Supporting/Expo.plist +12 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/reactnativeuniversalkeyboardawarescrollview-Bridging-Header.h +3 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview/reactnativeuniversalkeyboardawarescrollview.entitlements +5 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview.xcodeproj/project.pbxproj +540 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview.xcodeproj/xcshareddata/xcschemes/reactnativeuniversalkeyboardawarescrollview.xcscheme +88 -0
- package/ios/reactnativeuniversalkeyboardawarescrollview.xcworkspace/contents.xcworkspacedata +10 -0
- package/package.json +61 -0
- package/react-native-universal-keyboard-aware-scrollview.podspec +32 -0
- package/react-native.config.js +18 -0
- package/src/NativeModule.ts +61 -0
- package/src/components/KeyboardAwareScrollView.tsx +388 -0
- package/src/components/index.ts +5 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useKeyboard.ts +360 -0
- package/src/index.ts +27 -0
- package/src/types.ts +87 -0
- package/src/utils/KeyboardController.ts +112 -0
- package/src/utils/index.ts +1 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
package com.anonymous.reactnativeuniversalkeyboardawarescrollview
|
|
2
|
+
|
|
3
|
+
import android.os.Build
|
|
4
|
+
import android.os.Bundle
|
|
5
|
+
|
|
6
|
+
import com.facebook.react.ReactActivity
|
|
7
|
+
import com.facebook.react.ReactActivityDelegate
|
|
8
|
+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
|
|
9
|
+
import com.facebook.react.defaults.DefaultReactActivityDelegate
|
|
10
|
+
|
|
11
|
+
import expo.modules.ReactActivityDelegateWrapper
|
|
12
|
+
|
|
13
|
+
class MainActivity : ReactActivity() {
|
|
14
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
15
|
+
// Set the theme to AppTheme BEFORE onCreate to support
|
|
16
|
+
// coloring the background, status bar, and navigation bar.
|
|
17
|
+
// This is required for expo-splash-screen.
|
|
18
|
+
setTheme(R.style.AppTheme);
|
|
19
|
+
super.onCreate(null)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Returns the name of the main component registered from JavaScript. This is used to schedule
|
|
24
|
+
* rendering of the component.
|
|
25
|
+
*/
|
|
26
|
+
override fun getMainComponentName(): String = "main"
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
|
|
30
|
+
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
|
|
31
|
+
*/
|
|
32
|
+
override fun createReactActivityDelegate(): ReactActivityDelegate {
|
|
33
|
+
return ReactActivityDelegateWrapper(
|
|
34
|
+
this,
|
|
35
|
+
BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,
|
|
36
|
+
object : DefaultReactActivityDelegate(
|
|
37
|
+
this,
|
|
38
|
+
mainComponentName,
|
|
39
|
+
fabricEnabled
|
|
40
|
+
){})
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Align the back button behavior with Android S
|
|
45
|
+
* where moving root activities to background instead of finishing activities.
|
|
46
|
+
* @see <a href="https://developer.android.com/reference/android/app/Activity#onBackPressed()">onBackPressed</a>
|
|
47
|
+
*/
|
|
48
|
+
override fun invokeDefaultOnBackPressed() {
|
|
49
|
+
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
|
|
50
|
+
if (!moveTaskToBack(false)) {
|
|
51
|
+
// For non-root activities, use the default implementation to finish them.
|
|
52
|
+
super.invokeDefaultOnBackPressed()
|
|
53
|
+
}
|
|
54
|
+
return
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Use the default back button implementation on Android S
|
|
58
|
+
// because it's doing more than [Activity.moveTaskToBack] in fact.
|
|
59
|
+
super.invokeDefaultOnBackPressed()
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
package com.anonymous.reactnativeuniversalkeyboardawarescrollview
|
|
2
|
+
|
|
3
|
+
import android.app.Application
|
|
4
|
+
import android.content.res.Configuration
|
|
5
|
+
|
|
6
|
+
import com.facebook.react.PackageList
|
|
7
|
+
import com.facebook.react.ReactApplication
|
|
8
|
+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
|
|
9
|
+
import com.facebook.react.ReactNativeHost
|
|
10
|
+
import com.facebook.react.ReactPackage
|
|
11
|
+
import com.facebook.react.ReactHost
|
|
12
|
+
import com.facebook.react.common.ReleaseLevel
|
|
13
|
+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint
|
|
14
|
+
import com.facebook.react.defaults.DefaultReactNativeHost
|
|
15
|
+
|
|
16
|
+
import expo.modules.ApplicationLifecycleDispatcher
|
|
17
|
+
import expo.modules.ReactNativeHostWrapper
|
|
18
|
+
|
|
19
|
+
class MainApplication : Application(), ReactApplication {
|
|
20
|
+
|
|
21
|
+
override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper(
|
|
22
|
+
this,
|
|
23
|
+
object : DefaultReactNativeHost(this) {
|
|
24
|
+
override fun getPackages(): List<ReactPackage> =
|
|
25
|
+
PackageList(this).packages.apply {
|
|
26
|
+
// Packages that cannot be autolinked yet can be added manually here, for example:
|
|
27
|
+
// add(MyReactNativePackage())
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry"
|
|
31
|
+
|
|
32
|
+
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
|
|
33
|
+
|
|
34
|
+
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
override val reactHost: ReactHost
|
|
39
|
+
get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
|
|
40
|
+
|
|
41
|
+
override fun onCreate() {
|
|
42
|
+
super.onCreate()
|
|
43
|
+
DefaultNewArchitectureEntryPoint.releaseLevel = try {
|
|
44
|
+
ReleaseLevel.valueOf(BuildConfig.REACT_NATIVE_RELEASE_LEVEL.uppercase())
|
|
45
|
+
} catch (e: IllegalArgumentException) {
|
|
46
|
+
ReleaseLevel.STABLE
|
|
47
|
+
}
|
|
48
|
+
loadReactNative(this)
|
|
49
|
+
ApplicationLifecycleDispatcher.onApplicationCreate(this)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
override fun onConfigurationChanged(newConfig: Configuration) {
|
|
53
|
+
super.onConfigurationChanged(newConfig)
|
|
54
|
+
ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Copyright (C) 2014 The Android Open Source Project
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
-->
|
|
16
|
+
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
|
17
|
+
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
|
|
18
|
+
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
|
|
19
|
+
android:insetTop="@dimen/abc_edit_text_inset_top_material"
|
|
20
|
+
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
|
|
21
|
+
>
|
|
22
|
+
|
|
23
|
+
<selector>
|
|
24
|
+
<!--
|
|
25
|
+
This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
|
|
26
|
+
The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
|
|
27
|
+
NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
|
|
28
|
+
|
|
29
|
+
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
30
|
+
|
|
31
|
+
For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
|
|
32
|
+
-->
|
|
33
|
+
<item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
34
|
+
<item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
|
|
35
|
+
</selector>
|
|
36
|
+
|
|
37
|
+
</inset>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<resources>
|
|
2
|
+
<string name="app_name">react-native-universal-keyboard-aware-scrollview</string>
|
|
3
|
+
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
|
|
4
|
+
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
|
|
5
|
+
</resources>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
2
|
+
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
|
|
3
|
+
<item name="android:enforceNavigationBarContrast" tools:targetApi="29">true</item>
|
|
4
|
+
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
|
|
5
|
+
<item name="colorPrimary">@color/colorPrimary</item>
|
|
6
|
+
<item name="android:statusBarColor">#ffffff</item>
|
|
7
|
+
</style>
|
|
8
|
+
<style name="Theme.App.SplashScreen" parent="AppTheme">
|
|
9
|
+
<item name="android:windowBackground">@drawable/ic_launcher_background</item>
|
|
10
|
+
</style>
|
|
11
|
+
</resources>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<resources/>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
ext.safeExtGet = {prop, fallback ->
|
|
3
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
repositories {
|
|
7
|
+
google()
|
|
8
|
+
mavenCentral()
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
dependencies {
|
|
12
|
+
classpath("com.android.tools.build:gradle:8.1.0")
|
|
13
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.9.10')}")
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
def isNewArchitectureEnabled() {
|
|
18
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
apply plugin: 'com.android.library'
|
|
22
|
+
apply plugin: 'kotlin-android'
|
|
23
|
+
|
|
24
|
+
android {
|
|
25
|
+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
|
|
26
|
+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
|
|
27
|
+
namespace "com.universalkeyboard"
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 34)
|
|
31
|
+
|
|
32
|
+
defaultConfig {
|
|
33
|
+
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
34
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 34)
|
|
35
|
+
versionCode 1
|
|
36
|
+
versionName "1.0"
|
|
37
|
+
|
|
38
|
+
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
buildFeatures {
|
|
42
|
+
buildConfig true
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
buildTypes {
|
|
46
|
+
release {
|
|
47
|
+
minifyEnabled false
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
lintOptions {
|
|
52
|
+
abortOnError false
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
compileOptions {
|
|
56
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
57
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
kotlinOptions {
|
|
61
|
+
jvmTarget = '1.8'
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
sourceSets {
|
|
65
|
+
main {
|
|
66
|
+
if (isNewArchitectureEnabled()) {
|
|
67
|
+
java.srcDirs += ['src/newarch/java']
|
|
68
|
+
} else {
|
|
69
|
+
java.srcDirs += ['src/oldarch/java']
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
repositories {
|
|
76
|
+
maven {
|
|
77
|
+
url "$projectDir/../node_modules/react-native/android"
|
|
78
|
+
}
|
|
79
|
+
maven {
|
|
80
|
+
url("$rootDir/../node_modules/react-native/android")
|
|
81
|
+
}
|
|
82
|
+
mavenCentral()
|
|
83
|
+
google()
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
dependencies {
|
|
87
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:${safeExtGet('kotlinVersion', '1.9.10')}"
|
|
88
|
+
implementation "com.facebook.react:react-android:+"
|
|
89
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
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 daemon process.
|
|
11
|
+
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
+
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
|
|
13
|
+
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
|
|
14
|
+
|
|
15
|
+
# When configured, Gradle will run in incubating parallel mode.
|
|
16
|
+
# This option should only be used with decoupled projects. More details, visit
|
|
17
|
+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
18
|
+
org.gradle.parallel=true
|
|
19
|
+
|
|
20
|
+
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
21
|
+
# Android operating system, and which are packaged with your app's APK
|
|
22
|
+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
23
|
+
android.useAndroidX=true
|
|
24
|
+
|
|
25
|
+
# Enable AAPT2 PNG crunching
|
|
26
|
+
android.enablePngCrunchInReleaseBuilds=true
|
|
27
|
+
|
|
28
|
+
# Use this property to specify which architecture you want to build.
|
|
29
|
+
# You can also override it from the CLI using
|
|
30
|
+
# ./gradlew <task> -PreactNativeArchitectures=x86_64
|
|
31
|
+
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|
32
|
+
|
|
33
|
+
# Use this property to enable support to the new architecture.
|
|
34
|
+
# This will allow you to use TurboModules and the Fabric render in
|
|
35
|
+
# your application. You should enable this flag either if you want
|
|
36
|
+
# to write custom TurboModules/Fabric components OR use libraries that
|
|
37
|
+
# are providing them.
|
|
38
|
+
newArchEnabled=true
|
|
39
|
+
|
|
40
|
+
# Use this property to enable or disable the Hermes JS engine.
|
|
41
|
+
# If set to false, you will be using JSC instead.
|
|
42
|
+
hermesEnabled=true
|
|
43
|
+
|
|
44
|
+
# Use this property to enable edge-to-edge display support.
|
|
45
|
+
# This allows your app to draw behind system bars for an immersive UI.
|
|
46
|
+
# Note: Only works with ReactActivity and should not be used with custom Activity.
|
|
47
|
+
edgeToEdgeEnabled=true
|
|
48
|
+
|
|
49
|
+
# Enable GIF support in React Native images (~200 B increase)
|
|
50
|
+
expo.gif.enabled=true
|
|
51
|
+
# Enable webp support in React Native images (~85 KB increase)
|
|
52
|
+
expo.webp.enabled=true
|
|
53
|
+
# Enable animated webp support (~3.4 MB increase)
|
|
54
|
+
# Disabled by default because iOS doesn't support animated webp
|
|
55
|
+
expo.webp.animated=false
|
|
56
|
+
|
|
57
|
+
# Enable network inspector
|
|
58
|
+
EX_DEV_CLIENT_NETWORK_INSPECTOR=true
|
|
59
|
+
|
|
60
|
+
# Use legacy packaging to compress native libraries in the resulting APK.
|
|
61
|
+
expo.useLegacyPackaging=false
|
|
62
|
+
|
|
63
|
+
# Specifies whether the app is configured to use edge-to-edge via the app config or plugin
|
|
64
|
+
# WARNING: This property has been deprecated and will be removed in Expo SDK 55. Use `edgeToEdgeEnabled` or `react.edgeToEdgeEnabled` to determine whether the project is using edge-to-edge.
|
|
65
|
+
expo.edgeToEdgeEnabled=true
|