{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/10543","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/10543/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/10543/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/10543/events","html_url":"https://github.com/facebook/react-native/pull/10543","id":185114083,"number":10543,"title":"avoid \"white flash\" after LaunchScreen","user":{"login":"stockulus","id":3983944,"avatar_url":"https://avatars.githubusercontent.com/u/3983944?v=3","gravatar_id":"","url":"https://api.github.com/users/stockulus","html_url":"https://github.com/stockulus","followers_url":"https://api.github.com/users/stockulus/followers","following_url":"https://api.github.com/users/stockulus/following{/other_user}","gists_url":"https://api.github.com/users/stockulus/gists{/gist_id}","starred_url":"https://api.github.com/users/stockulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stockulus/subscriptions","organizations_url":"https://api.github.com/users/stockulus/orgs","repos_url":"https://api.github.com/users/stockulus/repos","events_url":"https://api.github.com/users/stockulus/events{/privacy}","received_events_url":"https://api.github.com/users/stockulus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20needs-revision","name":"GH Review: needs-revision","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-25T13:15:04Z","updated_at":"2016-10-25T20:24:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/10543","html_url":"https://github.com/facebook/react-native/pull/10543","diff_url":"https://github.com/facebook/react-native/pull/10543.diff","patch_url":"https://github.com/facebook/react-native/pull/10543.patch"},"body":"The RCTRootView shows for at least one frame its background Color (default white) before JS/React is ready. This is annoying. Special if you want to animate the Launchscreen after its gone in ReactNative (Something like the Twitter IOS App).\r\n\r\nI think this will help, getting ReactNative apps Start more smoothly. I use it and it works, think i will help others\r\n\r\nGreez Christoph"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/256164751","html_url":"https://github.com/facebook/react-native/pull/10543#issuecomment-256164751","issue_url":"https://api.github.com/repos/facebook/react-native/issues/10543","id":256164751,"user":{"login":"stockulus","id":3983944,"avatar_url":"https://avatars.githubusercontent.com/u/3983944?v=3","gravatar_id":"","url":"https://api.github.com/users/stockulus","html_url":"https://github.com/stockulus","followers_url":"https://api.github.com/users/stockulus/followers","following_url":"https://api.github.com/users/stockulus/following{/other_user}","gists_url":"https://api.github.com/users/stockulus/gists{/gist_id}","starred_url":"https://api.github.com/users/stockulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stockulus/subscriptions","organizations_url":"https://api.github.com/users/stockulus/orgs","repos_url":"https://api.github.com/users/stockulus/repos","events_url":"https://api.github.com/users/stockulus/events{/privacy}","received_events_url":"https://api.github.com/users/stockulus/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T20:24:08Z","updated_at":"2016-10-25T20:24:08Z","body":"what do you think about:\r\n\r\n```objc\r\n  // re-load the LaunchScreen to prevent white screen showing before your app renders\r\n  // remove it, if you target IOS 7 or do not have a LaunchScreen\r\n  UIView* launchScreen =  [[[NSBundle mainBundle] loadNibNamed:@\"LaunchScreen\" owner:self options:nil] objectAtIndex:0];\r\n  launchScreen.frame = [UIScreen mainScreen].bounds;\r\n  rootView.loadingView = launchScreen;\r\n  rootView.loadingViewFadeDelay = 0.20;        // ajust time for your needs   \r\n  rootView.loadingViewFadeDuration = 0.20;     // ajust time for your needs\r\n```"}}
{"actor":{"display_login":"stockulus"}}