{"action":"opened","issue":{"url":"https://api.github.com/repos/DylanVann/react-native-fast-image/issues/187","repository_url":"https://api.github.com/repos/DylanVann/react-native-fast-image","labels_url":"https://api.github.com/repos/DylanVann/react-native-fast-image/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/DylanVann/react-native-fast-image/issues/187/comments","events_url":"https://api.github.com/repos/DylanVann/react-native-fast-image/issues/187/events","html_url":"https://github.com/DylanVann/react-native-fast-image/issues/187","id":316216718,"number":187,"title":"[Android] Warning: Native component for \"FastImageView\" does not exist","user":{"login":"toinfinityandbeyond","id":31519405,"avatar_url":"https://avatars3.githubusercontent.com/u/31519405?v=4","gravatar_id":"","url":"https://api.github.com/users/toinfinityandbeyond","html_url":"https://github.com/toinfinityandbeyond","followers_url":"https://api.github.com/users/toinfinityandbeyond/followers","following_url":"https://api.github.com/users/toinfinityandbeyond/following{/other_user}","gists_url":"https://api.github.com/users/toinfinityandbeyond/gists{/gist_id}","starred_url":"https://api.github.com/users/toinfinityandbeyond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toinfinityandbeyond/subscriptions","organizations_url":"https://api.github.com/users/toinfinityandbeyond/orgs","repos_url":"https://api.github.com/users/toinfinityandbeyond/repos","events_url":"https://api.github.com/users/toinfinityandbeyond/events{/privacy}","received_events_url":"https://api.github.com/users/toinfinityandbeyond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-20T10:36:31Z","updated_at":"2018-04-20T10:36:31Z","closed_at":null,"author_association":"NONE","body":"I found myself with this issue and I was able to fix it for iOS as it's explained in #51 \r\nHowever, I didn't find anything for Android... so I had to fix it myself. \r\nI'm writing down here what was the solution for me in order to help others with the same issue.\r\nIt seems that react-native link does not do his work properly sometimes, so there was a missed line in `android/app/src/main/java/com/PROJECT_FOLDER/MainApplication.java` you must add \r\n\r\n`return Arrays.<ReactPackage>asList(\r\n            (.... all your packages list)\r\n            new FastImageViewPackage()\r\n\r\n      );`\r\n\r\nBe sure that previously you have imported the library at the top of the file \r\n`import com.dylanvann.fastimage.FastImageViewPackage;`\r\n\r\n\r\nIn case this solution doesn't work for you, these are the files you must check:\r\n\r\nAt `android/settings.gradle` add \r\n`include ':react-native-fast-image'\r\nproject(':react-native-fast-image').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fast-image/android')`\r\n\r\nAt `android/app/build.gradle` add \r\n`dependencies {\r\n    compile project(':react-native-fast-image')\r\n    (...all your dependencies)\r\n`\r\n\r\nHope it helps!"}}
{"actor":{"display_login":"toinfinityandbeyond"}}