-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this Library still Active?? If not, can you cancel this. #635
Comments
you need a workaround to get this working on the latest version of react-native, like the fact that the new react-native uses koltin, not java, which differs a little in the setup for the android. there are also issues with the structure of |
Hi @mohshbool , can you let me know how did you manage to use it in Kotlin for the MainActivity.kt?
obviously I have added the part
but not sure this is the way to do? and while at it since you seem to be good with the transition to kotlin, I used to have a function in mainapplication.java for codepush:
=> how could I have it in the new mainApplication.kt?
|
hello @pierroo. what you have implemented up there with your Kotlin code is correct as long as you're adding the import statement at the top of the file. are you getting any errors? |
thank you @mohshbool for replying, actually I had to uncomment the "// import android.os.Bundle;" at the top of the file that was necessary :) |
Facing Same Issue, import android.os.Bundle; class MainActivity : ReactActivity() { /**
/**
|
the below mentioned changes helped me resolved the issue. main changes I did related to kotlin (react native 0.74 version related is in file MainActivity.kt.
Add these lines.
|
I used this Library and I opened a can of worms!
I followed how to install this Library. There are so many changes that it broke my program.
The installation instruction is old and not anymore applicable for use.
Now I have an issue that my program can not see the react native gesture handler.
Can someone tell us if this was working for them?
What
react-native-splash-screen
version are you using?{
"name": "smartdimmer_ios",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"@react-native-community/slider": "^4.4.2",
"@react-navigation/native": "^6.1.7",
"@react-navigation/native-stack": "^6.9.13",
"babel": "^6.23.0",
"base64-js": "^1.5.1",
"buffer": "^6.0.3",
"react": "18.2.0",
"react-native": "0.72.4",
"react-native-gesture-handler": "^2.14.0",
"react-native-reanimated": "^3.5.1",
"react-native-safe-area-context": "^4.7.2",
"react-native-screens": "^3.25.0",
"react-native-size-matters": "^0.4.0",
"react-native-splash-screen": "^3.3.0",
"react-native-udp": "^4.1.7",
"react-native-vector-icons": "^10.0.0",
"upgrade": "^1.1.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/runtime": "^7.21.0",
"@tsconfig/react-native": "^3.0.0",
"@types/jest": "^29.5.1",
"@types/react": "^18.0.38",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.5.0",
"eslint": "8.39.0",
"jest": "^29.5.0",
"metro-react-native-babel-preset": "^0.76.2",
"prettier": "^2.8.8",
"react-native-clean-project": "^4.0.1",
"react-test-renderer": "18.2.0",
"typescript": "^5.0.4"
},
"jest": {
"preset": "react-native"
},
"browser": {
"dgram": "react-native-udp"
},
"resolutions": {
"react-native-gesture-handler": "2.12.1"
}
}
What platform does your issue occur on? Android
Describe your issue as precisely as possible :
Installed the "react-native-splash-screen": "^3.3.0"
Did the instructions to change a slew of changes on the Android folders.
logs
Suddenly I got this problem
ERROR [react-native-gesture-handler] react-native-gesture-handler module was not found. Make sure you're running your app on the native platform and your code is linked properly (cd ios && pod install && cd ..).
Join a screenshot or video of the problem on the simulator or device?
Show us the code you are using?
The text was updated successfully, but these errors were encountered: