{"action":"created","issue":{"url":"https://api.github.com/repos/Flipboard/react-canvas/issues/79","labels_url":"https://api.github.com/repos/Flipboard/react-canvas/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/Flipboard/react-canvas/issues/79/comments","events_url":"https://api.github.com/repos/Flipboard/react-canvas/issues/79/events","html_url":"https://github.com/Flipboard/react-canvas/issues/79","id":65793494,"number":79,"title":"When using a canvas component, mountedImages[i] is undefined","user":{"login":"natew","id":12100,"avatar_url":"https://avatars.githubusercontent.com/u/12100?v=3","gravatar_id":"","url":"https://api.github.com/users/natew","html_url":"https://github.com/natew","followers_url":"https://api.github.com/users/natew/followers","following_url":"https://api.github.com/users/natew/following{/other_user}","gists_url":"https://api.github.com/users/natew/gists{/gist_id}","starred_url":"https://api.github.com/users/natew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natew/subscriptions","organizations_url":"https://api.github.com/users/natew/orgs","repos_url":"https://api.github.com/users/natew/repos","events_url":"https://api.github.com/users/natew/events{/privacy}","received_events_url":"https://api.github.com/users/natew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T22:34:55Z","updated_at":"2015-04-01T22:37:24Z","closed_at":null,"body":"Use case like so:\r\n\r\n```js\r\nimport { Button } from 'reapp-kit';\r\nimport { Surface, Text } from 'react-canvas';\r\n\r\nexport default class extends React.Component {\r\n  render() {\r\n    return (\r\n      <Surface width={styles.width} height={styles.height} left={0} top={0}>\r\n        <Text style={styles.text}>\r\n          Here is some text\r\n        </Text>\r\n        <Button>\r\n          hello world\r\n        </Button>\r\n      </Surface>\r\n    );\r\n  }\r\n};\r\n\r\nconst styles = {\r\n  width: window.innerWidth,\r\n  height: window.innerHeight,\r\n\r\n  text: {\r\n    top: 20,\r\n    left: 20,\r\n    width: window.innerWidth,\r\n    height: 20,\r\n    lineHeight: 20,\r\n    fontSize: 12\r\n  }\r\n}\r\n```\r\n\r\nButton is just a simple surface, but its defined in an different module. That module does a require('react-canvas') as well though.\r\n\r\nError is on this line:\r\nhttps://github.com/Flipboard/react-canvas/blob/3ac33e05ff9364a570613e3d57d1877563163a23/lib/ContainerMixin.js#L121\r\n\r\nWhen inspecting that error, mountedImages looks like:\r\n\r\n```js\r\n[RenderLayer, \"<canvas width=\"400\" height=\"400\" style=\"width:200px;height:200px;\" data-reactid=\"undefined.1\"></canvas>\"]\r\n```\r\n\r\nSeems like the problem is that it's expecting a RenderLayer but it's getting a string (the canvas string above).\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/Flipboard/react-canvas/issues/comments/88654295","html_url":"https://github.com/Flipboard/react-canvas/issues/79#issuecomment-88654295","issue_url":"https://api.github.com/repos/Flipboard/react-canvas/issues/79","id":88654295,"user":{"login":"natew","id":12100,"avatar_url":"https://avatars.githubusercontent.com/u/12100?v=3","gravatar_id":"","url":"https://api.github.com/users/natew","html_url":"https://github.com/natew","followers_url":"https://api.github.com/users/natew/followers","following_url":"https://api.github.com/users/natew/following{/other_user}","gists_url":"https://api.github.com/users/natew/gists{/gist_id}","starred_url":"https://api.github.com/users/natew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natew/subscriptions","organizations_url":"https://api.github.com/users/natew/orgs","repos_url":"https://api.github.com/users/natew/repos","events_url":"https://api.github.com/users/natew/events{/privacy}","received_events_url":"https://api.github.com/users/natew/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T22:37:23Z","updated_at":"2015-04-01T22:37:23Z","body":"@mjohnston Wondering, any way to reach you (email)? Have some questions and thoughts for ya."}}