Giter VIP home page Giter VIP logo

Comments (17)

tboba avatar tboba commented on June 27, 2024 1

Hi @MuazzezA, I agree that's strange, given the information that you're using activity with all installation steps completed. However, we can't spot any issues with this error, while we're completing installation steps ourself. Could you please provide a minimal repro that will show the same error as yours, so that we could investigate this issue further? Also, what devices are you using on production to test your app?

from react-native-screens.

kkafar avatar kkafar commented on June 27, 2024 1

There is a question that comes to my mind. Will changing this in the route reduce my errors?

Dunno man :/ Basically change from JS stack to native one (you can also test on @react-navigation/native-stack) should be painless, however you need to keep in mind that some prop have changed their names between stack versions, so most likely you would need to change in few more places.

from react-native-screens.

MuazzezA avatar MuazzezA commented on June 27, 2024 1

Hi, First of all I want to share with you all the outputs I have. these came from Firebase Crashlytics. (changed the application name to app)
https://pastecode.io/s/g9wgb6fd

(info : 83% of crash events for this issue happened in the first 5 seconds of a user's session)
%48 samsung , %26 xiaomi and other devices. and %31 android 14.

I don't get this error, but some of my users do.

from react-native-screens.

kkafar avatar kkafar commented on June 27, 2024

Looks like omitted installation steps.

from react-native-screens.

MuazzezA avatar MuazzezA commented on June 27, 2024

But this error does not exist on all prod devices. I cannot implement a native solution because I can only use codepush. However, the current steps are given below.

public class MainActivity extends ReactActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    //NOTE FIX: https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-424704067
    super.onCreate(null);
    overridePendingTransition(0, 0);
    SplashScreen.show(this, R.style.SplashScreenTheme, true);
}

 // manifest

<activity
    android:name=".MainActivity"
    android:label="@string/app_name"
    android:screenOrientation="portrait"
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
    android:launchMode="singleTask"
    android:windowSoftInputMode="adjustResize"
    android:exported="true">

There is a question that comes to my mind. Will changing this in the route reduce my errors?

import { createStackNavigator} from '@react-navigation/stack';
to 
import {createNativeStackNavigator} from 'react-native-screens/native-stack';

/*
"react-native": "^0.71.6",
"@react-navigation/core": "^6.4.6",
"@react-navigation/native": "^6.1.6",
"@react-navigation/native-stack": "^6.9.8",
"@react-navigation/stack": "^6.3.11",

*/

from react-native-screens.

joelbrewer avatar joelbrewer commented on June 27, 2024

This same error appeared in our logs for the first time yesterday. @MuazzezA did you figure out what's going on?

from react-native-screens.

MuazzezA avatar MuazzezA commented on June 27, 2024

@joelbrewer unfortunately. I haven't found any solution. I don't even know where the error is coming from but I'll let you know when I figure it out.

from react-native-screens.

kkafar avatar kkafar commented on June 27, 2024

Most likely it is this line that throws an error, if it's of any help to you.

from react-native-screens.

MuazzezA avatar MuazzezA commented on June 27, 2024

@kkafar yes this solution is already in my project but it is not working. i think it is a temporary solution.

from react-native-screens.

oyun0915 avatar oyun0915 commented on June 27, 2024

Firebase Crashlytics log
Screenshot 2024-06-10 at 16 10 26

from react-native-screens.

rishabhHubilo avatar rishabhHubilo commented on June 27, 2024

Are there any updates on this error? Facing the same issue.

from react-native-screens.

kkafar avatar kkafar commented on June 27, 2024

I don't have any unfortunately. I want not able to reproduce this crash even once and there is no reproduction provided.

Waiting for repro here

from react-native-screens.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.