{"action":"created","issue":{"url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/352","repository_url":"https://api.github.com/repos/GeekyAnts/NativeBase","labels_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/352/comments","events_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/352/events","html_url":"https://github.com/GeekyAnts/NativeBase/issues/352","id":194649845,"number":352,"title":"DeckSwiper - undefined is not an object (evaluation \"item.title\")","user":{"login":"brunobraga95","id":14654063,"avatar_url":"https://avatars.githubusercontent.com/u/14654063?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobraga95","html_url":"https://github.com/brunobraga95","followers_url":"https://api.github.com/users/brunobraga95/followers","following_url":"https://api.github.com/users/brunobraga95/following{/other_user}","gists_url":"https://api.github.com/users/brunobraga95/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobraga95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobraga95/subscriptions","organizations_url":"https://api.github.com/users/brunobraga95/orgs","repos_url":"https://api.github.com/users/brunobraga95/repos","events_url":"https://api.github.com/users/brunobraga95/events{/privacy}","received_events_url":"https://api.github.com/users/brunobraga95/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-09T17:16:22Z","updated_at":"2016-12-13T12:31:13Z","closed_at":null,"body":"Hello guys,\r\n\r\nI was using deckSwiper two weeks ago and it was working fine (NB 0.5.14). Today I ran my app again and I ran into a few problems: \r\n`Requiring unknown module: 'react-native/Libraries/Renderer/src/renderers/native/ReactNativePropRegistry'`\r\n\r\nI fixed this problem by replacing `import ReactNativePropRegistry from 'react-native/Libraries/Renderer/src/renderers/native/ReactNativePropRegistry';`\r\nby:\r\n`import ReactNativePropRegistry from 'react\\lib\\ReactNativePropRegistry';`\r\nin:\r\nnode_modules\\react-native-easy-grid\\Utils\\computeProps.js\r\n\r\nand also updated NB to 0.5.18, along with\r\nreact: 15.4.0\r\nRN: 0.38.0\r\n\r\nAfter all that, I ran my app and my deckSwiper component was not not working anymore. Instead it was returning only the top of the card (Very weird problem). Then I checked the documentation and I saw that DeckSwiper code example changed a lot. \r\nAfter trying to run the DeckSwiper example provided in the documentation  I got the following error:\r\n\r\n **undefined is not an object (evaluation \"item.title\")**\r\n\r\nAnyone knows why deckSwiper stopped working in the first place, and why the sample code on native base documentation will not work?\r\nthanks\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/comments/266726815","html_url":"https://github.com/GeekyAnts/NativeBase/issues/352#issuecomment-266726815","issue_url":"https://api.github.com/repos/GeekyAnts/NativeBase/issues/352","id":266726815,"user":{"login":"sandeepskak","id":8362676,"avatar_url":"https://avatars.githubusercontent.com/u/8362676?v=3","gravatar_id":"","url":"https://api.github.com/users/sandeepskak","html_url":"https://github.com/sandeepskak","followers_url":"https://api.github.com/users/sandeepskak/followers","following_url":"https://api.github.com/users/sandeepskak/following{/other_user}","gists_url":"https://api.github.com/users/sandeepskak/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepskak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepskak/subscriptions","organizations_url":"https://api.github.com/users/sandeepskak/orgs","repos_url":"https://api.github.com/users/sandeepskak/repos","events_url":"https://api.github.com/users/sandeepskak/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepskak/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T12:31:13Z","updated_at":"2016-12-13T12:31:13Z","body":"@brunobraga95 I had the same issue, the example code on the documentation has a few errors.\r\nHere's the corrected snippet:\r\n`<DeckSwiper\r\n  dataSource={cards}\r\n  renderItem={item =>\r\n      <Card style={{ elevation: 3 }}>\r\n          <CardItem>\r\n              <Thumbnail source={item.image} />\r\n              <Text>{item.text}</Text>\r\n              <Text note>NativeBase</Text>\r\n          </CardItem>\r\n          <CardItem>\r\n              <Image style={{ resizeMode: 'cover', width: null }} source={item.image} />\r\n          </CardItem>\r\n          <CardItem>\r\n              <Icon name=\"ios-heart\" style={{ color: '#ED4A6A' }} />\r\n              <Text>{item.name}</Text>\r\n          </CardItem>\r\n      </Card>\r\n  }>\r\n</DeckSwiper>`\r\nHope this helps. "}}
{"actor":{"display_login":"sandeepskak"}}