{"action":"created","issue":{"url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/33","repository_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage","labels_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/33/comments","events_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/33/events","html_url":"https://github.com/andpor/react-native-sqlite-storage/issues/33","id":140000408,"number":33,"title":"Example code index.ios.promise.js no longer works with React Native 0.21","user":{"login":"afreix","id":2034684,"avatar_url":"https://avatars.githubusercontent.com/u/2034684?v=3","gravatar_id":"","url":"https://api.github.com/users/afreix","html_url":"https://github.com/afreix","followers_url":"https://api.github.com/users/afreix/followers","following_url":"https://api.github.com/users/afreix/following{/other_user}","gists_url":"https://api.github.com/users/afreix/gists{/gist_id}","starred_url":"https://api.github.com/users/afreix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afreix/subscriptions","organizations_url":"https://api.github.com/users/afreix/orgs","repos_url":"https://api.github.com/users/afreix/repos","events_url":"https://api.github.com/users/afreix/events{/privacy}","received_events_url":"https://api.github.com/users/afreix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-10T20:29:59Z","updated_at":"2016-03-19T10:49:09Z","closed_at":"2016-03-17T11:19:08Z","body":"I upgraded my version of React Native from 0.17 to 0.21 and am now experiencing errors with the test code and my own code.\r\n\r\nTypeError: Cannot read property 'open' of undefined\r\n    at Object.plugin.exec (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:68480:24)\r\n    at SQLitePlugin.open (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:68622:8)\r\n    at new SQLitePlugin (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:68502:6)\r\n    at null.<anonymous> (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:69011:8)\r\n    at null.<anonymous> (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:68469:12)\r\n    at null.<anonymous> (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:68381:30)\r\n    at tryCallTwo (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:2628:1)\r\n    at doResolve (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:2783:9)\r\n    at new Promise (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:2649:1)\r\n    at plugin.(anonymous function).(anonymous function) [as openDatabase] (http://localhost:8081/index.ios.bundle?platform=ios&dev=true:68370:13)"},"comment":{"url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/comments/198682006","html_url":"https://github.com/andpor/react-native-sqlite-storage/issues/33#issuecomment-198682006","issue_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/33","id":198682006,"user":{"login":"andpor","id":10236571,"avatar_url":"https://avatars.githubusercontent.com/u/10236571?v=3","gravatar_id":"","url":"https://api.github.com/users/andpor","html_url":"https://github.com/andpor","followers_url":"https://api.github.com/users/andpor/followers","following_url":"https://api.github.com/users/andpor/following{/other_user}","gists_url":"https://api.github.com/users/andpor/gists{/gist_id}","starred_url":"https://api.github.com/users/andpor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andpor/subscriptions","organizations_url":"https://api.github.com/users/andpor/orgs","repos_url":"https://api.github.com/users/andpor/repos","events_url":"https://api.github.com/users/andpor/events{/privacy}","received_events_url":"https://api.github.com/users/andpor/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T10:49:09Z","updated_at":"2016-03-19T10:49:09Z","body":"Make sure your libSQLite.a is listed under Linked Frameworks and Libraries. It is all in the instructions. Running react-native upgrade will reset Linked Frameworks and Libraries.\r\n\r\nIf you do not see \"Initializing SQLitePlugin\" in the XCode debug console your set up is not correct. Not having the plugin initialize will cause it to be undefined. "}}