'use strict'; var BatchedBridgerequire('react-native/Libraries/BatchedBridge/BatchedBridge'); var warningrequire('fbjs/lib/warning'); var invariantrequire('invariant'); var LoggingTestModule{ logToConsole: function (str){ console.log(str); } , logToConsoleAfterWait: function (str, timeout_ms){ _AN_Call_settimeout('setTimeout', window, function (){ console.log(str); } , timeout_ms); } , warning: function (str){ warning(false , str); } , invariant: function (str){ invariant(false , str); } , logErrorToConsole: function (str){ console.error(str); } , throwError: function (str){ throw new Error(str) } } ; BatchedBridge.registerCallableModule('LoggingTestModule', LoggingTestModule); module.exports = LoggingTestModule;