{"action":"created","issue":{"url":"https://api.github.com/repos/magicismight/react-native-svg/issues/54","repository_url":"https://api.github.com/repos/magicismight/react-native-svg","labels_url":"https://api.github.com/repos/magicismight/react-native-svg/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/magicismight/react-native-svg/issues/54/comments","events_url":"https://api.github.com/repos/magicismight/react-native-svg/issues/54/events","html_url":"https://github.com/magicismight/react-native-svg/issues/54","id":158782264,"number":54,"title":"LinearGradient fill on Polygons","user":{"login":"mrozbarry","id":566486,"avatar_url":"https://avatars.githubusercontent.com/u/566486?v=3","gravatar_id":"","url":"https://api.github.com/users/mrozbarry","html_url":"https://github.com/mrozbarry","followers_url":"https://api.github.com/users/mrozbarry/followers","following_url":"https://api.github.com/users/mrozbarry/following{/other_user}","gists_url":"https://api.github.com/users/mrozbarry/gists{/gist_id}","starred_url":"https://api.github.com/users/mrozbarry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrozbarry/subscriptions","organizations_url":"https://api.github.com/users/mrozbarry/orgs","repos_url":"https://api.github.com/users/mrozbarry/repos","events_url":"https://api.github.com/users/mrozbarry/events{/privacy}","received_events_url":"https://api.github.com/users/mrozbarry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-06T21:42:58Z","updated_at":"2016-06-07T18:25:43Z","closed_at":null,"body":"When I attempt to fill a polygon with a linear gradient, I just get the following error:\r\n\r\n![screen shot 2016-06-06 at 5 40 17 pm](https://cloud.githubusercontent.com/assets/566486/15838750/c723397e-2c0d-11e6-8e43-de5bf6e68766.png)\r\n\r\nThe examples only use Ellipse, so I don't know if this is only supported on non-polygon elements, or if this is a bug.\r\n\r\nMy code is as follows:\r\n\r\n```jsx\r\nimport React, { View } from 'react-native'\r\nimport { Svg, Defs, LinearGradient, Stop, G, Polygon } from 'react-native-svg'\r\n\r\nexport function BlueShard (props) {\r\n  return (\r\n    <View style={props.style}>\r\n      <Svg width=\"15\" height=\"71\">\r\n        <Defs>\r\n          <LinearGradient x1=\"50%\" y1=\"0%\" x2=\"50%\" y2=\"100%\" id=\"blue-gradient\">\r\n            <Stop stopColor=\"#6ABAD5\" stopOpacity=\"1\" offset=\"0%\" />\r\n            <Stop stopColor=\"#1E9FD6\" stopOpacity=\"1\" offset=\"100%\" />\r\n          </LinearGradient>\r\n        </Defs>\r\n        <Polygon fill=\"url(#blue-gradient)\" points='0,0 15,0 0,71' />\r\n      </Svg>\r\n    </View>\r\n  )\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/magicismight/react-native-svg/issues/comments/224370423","html_url":"https://github.com/magicismight/react-native-svg/issues/54#issuecomment-224370423","issue_url":"https://api.github.com/repos/magicismight/react-native-svg/issues/54","id":224370423,"user":{"login":"mrozbarry","id":566486,"avatar_url":"https://avatars.githubusercontent.com/u/566486?v=3","gravatar_id":"","url":"https://api.github.com/users/mrozbarry","html_url":"https://github.com/mrozbarry","followers_url":"https://api.github.com/users/mrozbarry/followers","following_url":"https://api.github.com/users/mrozbarry/following{/other_user}","gists_url":"https://api.github.com/users/mrozbarry/gists{/gist_id}","starred_url":"https://api.github.com/users/mrozbarry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrozbarry/subscriptions","organizations_url":"https://api.github.com/users/mrozbarry/orgs","repos_url":"https://api.github.com/users/mrozbarry/repos","events_url":"https://api.github.com/users/mrozbarry/events{/privacy}","received_events_url":"https://api.github.com/users/mrozbarry/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T18:25:43Z","updated_at":"2016-06-07T18:25:43Z","body":"That worked, thanks!"}}
{"actor":{"display_login":"mrozbarry"}}