Closed zeynepdogay closed 1 year ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.72.3. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Hi, Thanks for reporting this issue.
It seems like this issue is actually unrelated to React Native core, but related to safe-area-context
. Please open this issue against this other repository:
https://github.com/th3rdwave/react-native-safe-area-context/issues
I'll be closing this but feel free to reopen if the other repo points back to us as a issue in the core of React Native.
i try kotlin lastest version. this method worked for me
kotlinVersion = '1.9.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"
i try kotlin lastest version. this method worked for me
kotlinVersion = '1.9.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"
Thanks. This worked for me
i try kotlin lastest version. this method worked for me
kotlinVersion = '1.9.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"
Thanks. I have been dealing with this problem for a long time. This is worked for me as well.
i try kotlin lastest version. this method worked for me
kotlinVersion = '1.9.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"
Thank you. This solution worked for me.
Thank you. worked for me.
Description
I ran the following command I needed to do this for react navigation. I made the change in the MainActivity.java file as it said. I have attached the file below and also added my other files androdi/app/build.gradle and android/build.gradle my kotlin version is not writing in my file. I don't know what I need to do for the kotlin version. Can you explain me the installation steps vs. kotlin in detail? I don't even know what my mistake is. I made the transition from 8.0.1 to 7.5 in gradle.wrapper.properties, it said so in a source, but it didn't solve my mistake.
npm install react-native-screens react-native-safe-area-context
React Native Version
"react-native": "0.72.1
Output of
npx react-native info
λ npx react-native info info Fetching system and libraries information... System: OS: Windows 10 10.0.22621 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 2.68 GB / 15.86 GB Binaries: Node: version: 18.16.1 path: C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: version: 9.8.0 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: API Levels:
Steps to reproduce
C:\Users\ZEYNEP\monkeysteam\AwesomeProject\android\app\build.gradle
apply plugin: "com.android.application" apply plugin: "com.facebook.react"
/**
By default you don't need to apply any configuration, just uncomment the lines you need. / react { / Folders */ // The root of your project, i.e. where "package.json" lives. Default is '..' // root = file("../") // The folder where the react-native NPM package is. Default is ../node_modules/react-native // reactNativeDir = file("../node_modules/react-native") // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen // codegenDir = file("../node_modules/@react-native/codegen") // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js // cliFile = file("../node_modules/react-native/cli.js")
/ Variants / // The list of variants to that are debuggable. For those we're going to // skip the bundling of the JS bundle and the assets. By default is just 'debug'. // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. // debuggableVariants = ["liteDebug", "prodDebug"]
/ Bundling / // A list containing the node command and its flags. Default is just 'node'. // nodeExecutableAndArgs = ["node"] // // The command to run when bundling. By default is 'bundle' // bundleCommand = "ram-bundle" // // The path to the CLI configuration file. Default is empty. // bundleConfig = file(../rn-cli.config.js) // // The name of the generated asset file containing your JS bundle // bundleAssetName = "MyApplication.android.bundle" // // The entry file for bundle generation. Default is 'index.android.js' or 'index.js' // entryFile = file("../js/MyApplication.android.js") // // A list of extra flags to pass to the 'bundle' commands. // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle // extraPackagerArgs = []
/ Hermes Commands / // The hermes compiler command to run. By default it is 'hermesc' // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc" // // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map" // hermesFlags = ["-O", "-output-source-map"] }
/**
/**
def jscFlavor = 'org.webkit:android-jsc-intl:+'
Date.toLocaleString
andString.localeCompare
thatandroid { ndkVersion rootProject.ext.ndkVersion
}
dependencies { // The version of react-native is set by the React Native Gradle Plugin implementation("com.facebook.react:react-android")
}
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
C:\Users\ZEYNEP\monkeysteam\AwesomeProject\android\build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { ext { buildToolsVersion = "33.0.0" minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33
}
C:\Users\ZEYNEP\monkeysteam\AwesomeProject\android\app\src\main\java\com\awesomeproject\MainActivity.java
package com.awesomeproject;
import com.facebook.react.ReactActivity; import com.facebook.react.ReactActivityDelegate; import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint; import com.facebook.react.defaults.DefaultReactActivityDelegate; import android.os.Bundle;
public class MainActivity extends ReactActivity {
/**
rendering of the component. */ @Override protected String getMainComponentName() { return "AwesomeProject"; }
/**
(aka React 18) with two boolean flags. */ @Override protected ReactActivityDelegate createReactActivityDelegate() { return new DefaultReactActivityDelegate( this, getMainComponentName(), // If you opted-in for the New Architecture, we enable the Fabric Renderer. DefaultNewArchitectureEntryPoint.getFabricEnabled());
} @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(null); } }
Snack, code example, screenshot, or link to a repository