Coder Social home page Coder Social logo

Comments (11)

mlazari avatar mlazari commented on June 7, 2024 2

It looks like that documentation should be updated.

In 0.74 a new customizeRootView function was added - #42088, which I think can be used something like this:

#import <React/RCTRootView.h>

// ...

- (void)customizeRootView:(RCTRootView *)rootView
{
  UIStoryboard *sb = [UIStoryboard storyboardWithName:@"LaunchScreen" bundle:nil];
  UIViewController *vc = [sb instantiateInitialViewController];
  rootView.loadingView = vc.view;
}

In 0.73 probably something like this could work?

#import <React/RCTRootView.h>

// ...

- (UIView *)createRootViewWithBridge:(RCTBridge *)bridge
                          moduleName:(NSString *)moduleName
                           initProps:(NSDictionary *)initProps
{
  RCTRootView *rootView = (RCTRootView *)[super createRootViewWithBridge:bridge moduleName:moduleName initProps:initProps];
  UIStoryboard *sb = [UIStoryboard storyboardWithName:@"LaunchScreen" bundle:nil];
  UIViewController *vc = [sb instantiateInitialViewController];
  rootView.loadingView = vc.view;
  return rootView;
}

from react-native.

github-actions avatar github-actions commented on June 7, 2024
⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.73.7. 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.

from react-native.

github-actions avatar github-actions commented on June 7, 2024
⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

from react-native.

batusenyuz avatar batusenyuz commented on June 7, 2024

Thanks @mlazari, do you think this will solve the loading issue in the app.tsx file? I want the launchscreen to appear until the renderscreens function is completed.

from react-native.

mlazari avatar mlazari commented on June 7, 2024

@batusenyuz Not sure about that, I just indicated where I think is the new place for that code in 0.73 / 0.74. I am not using it and didn't test it, so not sure if that's correct or not.

from react-native.

caglardurmus avatar caglardurmus commented on June 7, 2024

This #44195 (comment) solved my problem on 0.74.0. I am using same "LaunchScreen" in 0.70.14 and it works perfect. But in this version its zooming before the exit. I tried to disable animation but i cant. Is anyone has the same issue?

from react-native.

batusenyuz avatar batusenyuz commented on June 7, 2024

Hi @caglardurmus, I'm also having the zoom animation issue.

from react-native.

caglardurmus avatar caglardurmus commented on June 7, 2024

Any solution?

from react-native.

batusenyuz avatar batusenyuz commented on June 7, 2024

react native library and documentation should be updated according to new updates and this should be done urgently.

@cortinico

from react-native.

batusenyuz avatar batusenyuz commented on June 7, 2024

We expect support from the community on this issue!

from react-native.

mlazari avatar mlazari commented on June 7, 2024

@batusenyuz Could you create a new React Native project with a minimal reproducible example? That would help others to better understand the issue and look into it.

from react-native.

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.