{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/9948","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/9948/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/9948/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/9948/events","html_url":"https://github.com/facebook/react-native/issues/9948","id":177447583,"number":9948,"title":"UIExplorer examples got rendered twice?","user":{"login":"littlesome","id":7804648,"avatar_url":"https://avatars.githubusercontent.com/u/7804648?v=3","gravatar_id":"","url":"https://api.github.com/users/littlesome","html_url":"https://github.com/littlesome","followers_url":"https://api.github.com/users/littlesome/followers","following_url":"https://api.github.com/users/littlesome/following{/other_user}","gists_url":"https://api.github.com/users/littlesome/gists{/gist_id}","starred_url":"https://api.github.com/users/littlesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlesome/subscriptions","organizations_url":"https://api.github.com/users/littlesome/orgs","repos_url":"https://api.github.com/users/littlesome/repos","events_url":"https://api.github.com/users/littlesome/events{/privacy}","received_events_url":"https://api.github.com/users/littlesome/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-16T15:01:55Z","updated_at":"2016-09-16T15:55:02Z","closed_at":"2016-09-16T15:55:02Z","body":"Hi, I'm playing with the UIExplorer, when I open RCTRootView example, I noticed a flicker, and debugging shows that views are created twice.\r\n\r\nAdd a log to UIExplorerExampleContainer's renderExample, you can see examples got a re-render after open and before close.\r\n\r\n``` \r\n  renderExample(example, i) {\r\n    // Filter platform-specific examples\r\n    var {title, description, platform} = example;\r\n    console.log('renderExample', i, title);\r\n    ...\r\n```\r\nopen example like ActivityIndicator, you got log:\r\n```\r\nUIExplorerExampleContainer.js:38 renderExample 0 Default (small, white)\r\nUIExplorerExampleContainer.js:38 renderExample 1 Gray\r\nUIExplorerExampleContainer.js:38 renderExample 2 Custom colors\r\nUIExplorerExampleContainer.js:38 renderExample 3 Large\r\nUIExplorerExampleContainer.js:38 renderExample 4 Large, custom colors\r\nUIExplorerExampleContainer.js:38 renderExample 5 Start/stop\r\nUIExplorerExampleContainer.js:38 renderExample 6 Custom size\r\nUIExplorerExampleContainer.js:38 renderExample 7 Custom size (size: 75)\r\nUIExplorerExampleContainer.js:38 renderExample 0 Default (small, white)\r\nUIExplorerExampleContainer.js:38 renderExample 1 Gray\r\nUIExplorerExampleContainer.js:38 renderExample 2 Custom colors\r\nUIExplorerExampleContainer.js:38 renderExample 3 Large\r\nUIExplorerExampleContainer.js:38 renderExample 4 Large, custom colors\r\nUIExplorerExampleContainer.js:38 renderExample 5 Start/stop\r\nUIExplorerExampleContainer.js:38 renderExample 6 Custom size\r\nUIExplorerExampleContainer.js:38 renderExample 7 Custom size (size: 75)\r\n```\r\n\r\n\r\nThis may have something to do with NavigationCardStack, and is this a bug or something by design?\r\n\r\n* React Native version: v0.34.0-rc.0\r\n* Platform(s) (iOS, Android, or both?): iOS\r\n* Operating System (macOS, Linux, or Windows?): macOS\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/247637531","html_url":"https://github.com/facebook/react-native/issues/9948#issuecomment-247637531","issue_url":"https://api.github.com/repos/facebook/react-native/issues/9948","id":247637531,"user":{"login":"littlesome","id":7804648,"avatar_url":"https://avatars.githubusercontent.com/u/7804648?v=3","gravatar_id":"","url":"https://api.github.com/users/littlesome","html_url":"https://github.com/littlesome","followers_url":"https://api.github.com/users/littlesome/followers","following_url":"https://api.github.com/users/littlesome/following{/other_user}","gists_url":"https://api.github.com/users/littlesome/gists{/gist_id}","starred_url":"https://api.github.com/users/littlesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlesome/subscriptions","organizations_url":"https://api.github.com/users/littlesome/orgs","repos_url":"https://api.github.com/users/littlesome/repos","events_url":"https://api.github.com/users/littlesome/events{/privacy}","received_events_url":"https://api.github.com/users/littlesome/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T15:55:02Z","updated_at":"2016-09-16T15:55:02Z","body":"@ryankask Thanks, I got it. \r\nI will send a PR to UIExplorerExampleContainer.js to fix this and this issue should be closed. "}}
{"actor":{"display_login":"littlesome"}}