{"action":"created","issue":{"url":"https://api.github.com/repos/halilb/react-native-textinput-effects/issues/15","repository_url":"https://api.github.com/repos/halilb/react-native-textinput-effects","labels_url":"https://api.github.com/repos/halilb/react-native-textinput-effects/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/halilb/react-native-textinput-effects/issues/15/comments","events_url":"https://api.github.com/repos/halilb/react-native-textinput-effects/issues/15/events","html_url":"https://github.com/halilb/react-native-textinput-effects/issues/15","id":190508221,"number":15,"title":"Exception thrown on input focus animation","user":{"login":"rafaelvs","id":759178,"avatar_url":"https://avatars.githubusercontent.com/u/759178?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelvs","html_url":"https://github.com/rafaelvs","followers_url":"https://api.github.com/users/rafaelvs/followers","following_url":"https://api.github.com/users/rafaelvs/following{/other_user}","gists_url":"https://api.github.com/users/rafaelvs/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelvs/subscriptions","organizations_url":"https://api.github.com/users/rafaelvs/orgs","repos_url":"https://api.github.com/users/rafaelvs/repos","events_url":"https://api.github.com/users/rafaelvs/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelvs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-19T17:23:57Z","updated_at":"2016-12-07T19:31:18Z","closed_at":"2016-12-07T19:31:18Z","body":"Hi, \r\n\r\nI tried to use Fumi component (putting exactly the same code as is in README). The component is displayed, but when I tap the input the animation doesn't work and I get the following excpetion:\r\n\r\n'Icon \"viewConfig\" is not defined' (sorry I don't know to to copy and paste full react native stack trace.. I tried to upload a image, but to no avail)\r\n\r\nWhat I did to workaround was: I subclassed FontAwesomeIcon (from 'react-native-vector-icons/FontAwesome') and added viewConfig={} property (valued with empty object); and then used this class in <Fumi ... iconClass={MyIcon} />\r\n\r\n```javascript\r\nclass MyIcon extends FontAwesomeIcon {\r\n  viewConfig = {};\r\n}\r\n\r\n//...\r\n\r\n<Fumi\r\n              label={'Course Name'}\r\n              iconClass={MyIcon}\r\n              iconName={'university'}\r\n              iconColor={'#f95a25'}\r\n            />\r\n```\r\n\r\nI'm new to react-native, still experimenting, so I'm not sure what is the true cause of the issue ([maybe this commit - notice the added lines that make viewConfig property required](https://github.com/facebook/react-native/pull/10238/files)) or what  would be the best way to fix it (a fix could be made in either react-native-textinput-effects, [by adding viewConfig property somewhere around here](https://github.com/halilb/react-native-textinput-effects/blob/master/lib/Fumi.js#L65),  or in react-native-vector-icons, by adding viewConfig to the the root of their Icon classes).\r\n\r\nIf it helps, I'm using react-native 0.37.0."},"comment":{"url":"https://api.github.com/repos/halilb/react-native-textinput-effects/issues/comments/265548148","html_url":"https://github.com/halilb/react-native-textinput-effects/issues/15#issuecomment-265548148","issue_url":"https://api.github.com/repos/halilb/react-native-textinput-effects/issues/15","id":265548148,"user":{"login":"halilb","id":2227041,"avatar_url":"https://avatars.githubusercontent.com/u/2227041?v=3","gravatar_id":"","url":"https://api.github.com/users/halilb","html_url":"https://github.com/halilb","followers_url":"https://api.github.com/users/halilb/followers","following_url":"https://api.github.com/users/halilb/following{/other_user}","gists_url":"https://api.github.com/users/halilb/gists{/gist_id}","starred_url":"https://api.github.com/users/halilb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halilb/subscriptions","organizations_url":"https://api.github.com/users/halilb/orgs","repos_url":"https://api.github.com/users/halilb/repos","events_url":"https://api.github.com/users/halilb/events{/privacy}","received_events_url":"https://api.github.com/users/halilb/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T19:31:18Z","updated_at":"2016-12-07T19:31:18Z","body":"This issue should be fixed after react-native version 0.38.0. Please feel free to reopen the issue if it persists."}}
{"actor":{"display_login":"halilb"}}