{"action":"opened","issue":{"url":"https://api.github.com/repos/emotion-js/emotion/issues/1155","repository_url":"https://api.github.com/repos/emotion-js/emotion","labels_url":"https://api.github.com/repos/emotion-js/emotion/issues/1155/labels{/name}","comments_url":"https://api.github.com/repos/emotion-js/emotion/issues/1155/comments","events_url":"https://api.github.com/repos/emotion-js/emotion/issues/1155/events","html_url":"https://github.com/emotion-js/emotion/issues/1155","id":395798601,"node_id":"MDU6SXNzdWUzOTU3OTg2MDE=","number":1155,"title":"[@emotion/native] Use StyleSheet.create to create styles for improved performance","user":{"login":"hammadj","id":7143583,"node_id":"MDQ6VXNlcjcxNDM1ODM=","avatar_url":"https://avatars3.githubusercontent.com/u/7143583?v=4","gravatar_id":"","url":"https://api.github.com/users/hammadj","html_url":"https://github.com/hammadj","followers_url":"https://api.github.com/users/hammadj/followers","following_url":"https://api.github.com/users/hammadj/following{/other_user}","gists_url":"https://api.github.com/users/hammadj/gists{/gist_id}","starred_url":"https://api.github.com/users/hammadj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammadj/subscriptions","organizations_url":"https://api.github.com/users/hammadj/orgs","repos_url":"https://api.github.com/users/hammadj/repos","events_url":"https://api.github.com/users/hammadj/events{/privacy}","received_events_url":"https://api.github.com/users/hammadj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-04T03:30:29Z","updated_at":"2019-01-04T03:30:29Z","closed_at":null,"author_association":"NONE","body":"**Problem description:**\r\nWas digging into the react-native implementation when I noticed that the styles are just passed around as plain JS objects instead of number references created with `StyleSheet.create` (https://facebook.github.io/react-native/docs/stylesheet#flatten). This has serious performance implications, and isn't ideal for a decently sized RN app.\r\n\r\n\r\n**Suggested solution:**\r\nImplement creating styles with StyleSheet.create, like [this library](https://github.com/robinpowered/glamorous-native) does here: https://github.com/robinpowered/glamorous-native/blob/01112810f99b1e783681ccbc09948ccb18f44ad7/src/create-glamorous.js#L16"}}
{"actor":{"display_login":"hammadj"}}