{"action":"opened","issue":{"url":"https://api.github.com/repos/emekalites/react-native-alarm-notification/issues/9","repository_url":"https://api.github.com/repos/emekalites/react-native-alarm-notification","labels_url":"https://api.github.com/repos/emekalites/react-native-alarm-notification/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/emekalites/react-native-alarm-notification/issues/9/comments","events_url":"https://api.github.com/repos/emekalites/react-native-alarm-notification/issues/9/events","html_url":"https://github.com/emekalites/react-native-alarm-notification/issues/9","id":343363905,"node_id":"MDU6SXNzdWUzNDMzNjM5MDU=","number":9,"title":"ISSUE WITH METHODS...","user":{"login":"CastilloLuis","id":37077073,"node_id":"MDQ6VXNlcjM3MDc3MDcz","avatar_url":"https://avatars3.githubusercontent.com/u/37077073?v=4","gravatar_id":"","url":"https://api.github.com/users/CastilloLuis","html_url":"https://github.com/CastilloLuis","followers_url":"https://api.github.com/users/CastilloLuis/followers","following_url":"https://api.github.com/users/CastilloLuis/following{/other_user}","gists_url":"https://api.github.com/users/CastilloLuis/gists{/gist_id}","starred_url":"https://api.github.com/users/CastilloLuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CastilloLuis/subscriptions","organizations_url":"https://api.github.com/users/CastilloLuis/orgs","repos_url":"https://api.github.com/users/CastilloLuis/repos","events_url":"https://api.github.com/users/CastilloLuis/events{/privacy}","received_events_url":"https://api.github.com/users/CastilloLuis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-21T23:45:03Z","updated_at":"2018-07-21T23:45:03Z","closed_at":null,"author_association":"NONE","body":"Hi!!! This is the first time that i used this module...\r\nI have the configuration bellow, the problem is that when i press the button, the scheduleAlarm and others method does not work...:\r\n\r\nThe error says:\r\n\r\n**Uncaught Error: undefinied is not an object evaluating 'RNALarmNotification.scheduleAlarm')**\r\n\r\nI dont know what to do! I also linked and add the part of the xml, and check the .java files. But everything is ok!\r\n\r\nThanks\r\n\r\n\r\n`import React from 'react';\r\nimport {Text, Content, Button} from 'native-base';\r\nimport ReactNativeAN from 'react-native-alarm-notification';\r\n\r\nexport default class AlarmComponent extends React.Component {\r\n    \r\n    render() {\r\n        return(\r\n            <Content>\r\n                <Text>Clock alarm</Text>\r\n                <Button onPress={() => this.setAlarm()}><Text>CLICK HERE NIGGA</Text></Button>\r\n            </Content>\r\n        )\r\n    }\r\n\r\n    setAlarm = () => {\r\n        const fireDate = new Date(Date.now() + 5000);     // set the fire date for 1 second from now\r\n        const alarmNotifData = {\r\n            id: \"12345\",                                  // Required\r\n            title: \"My Notification Title\",               // Required\r\n            message: \"My Notification Message\",           // Required\r\n            ticker: \"My Notification Ticker\",\r\n            auto_cancel: true,                            // default: true\r\n            vibrate: true,\r\n            vibration: 100,                               // default: 100, no vibration if vibrate: false\r\n            small_icon: \"ic_launcher\",                    // Required\r\n            large_icon: \"ic_launcher\",\r\n            play_sound: true,\r\n            sound_name: null,                             // Plays custom notification ringtone if sound_name: null\r\n            color: \"red\",\r\n            schedule_once: true,                          // Works with ReactNativeAN.scheduleAlarm so alarm fires once\r\n            tag: 'some_tag',\r\n            fire_date: ReactNativeAN.parseDate(fireDate)  // Date for firing alarm, Required for ReactNativeAN.scheduleAlarm. Format: dd-MM-yyyy HH:mm:ss\r\n        };\r\n        ReactNativeAN.scheduleAlarm(alarmNotifData);\r\n    }\r\n}`\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"CastilloLuis"}}