2015-04-23 16:41:45 +00:00
|
|
|
/**
|
|
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var NativeModules = {
|
|
|
|
I18n: {
|
2015-04-27 22:58:21 +00:00
|
|
|
translationsDictionary: JSON.stringify({
|
2015-04-23 16:41:45 +00:00
|
|
|
'Good bye, {name}!|Bye message': '¡Adiós {name}!',
|
2015-04-27 22:58:21 +00:00
|
|
|
}),
|
2015-04-23 16:41:45 +00:00
|
|
|
},
|
|
|
|
Timing: {
|
2016-04-28 02:15:28 +00:00
|
|
|
createTimer: jest.fn(),
|
|
|
|
deleteTimer: jest.fn(),
|
2015-04-23 16:41:45 +00:00
|
|
|
},
|
|
|
|
GraphPhotoUpload: {
|
2016-04-28 02:15:28 +00:00
|
|
|
upload: jest.fn(),
|
2015-04-23 16:41:45 +00:00
|
|
|
},
|
|
|
|
FacebookSDK: {
|
2016-04-28 02:15:28 +00:00
|
|
|
login: jest.fn(),
|
|
|
|
logout: jest.fn(),
|
|
|
|
queryGraphPath: jest.fn((path, method, params, callback) => callback()),
|
2015-04-23 16:41:45 +00:00
|
|
|
},
|
|
|
|
DataManager: {
|
2016-04-28 02:15:28 +00:00
|
|
|
queryData: jest.fn(),
|
2015-04-23 16:41:45 +00:00
|
|
|
},
|
|
|
|
UIManager: {
|
|
|
|
customBubblingEventTypes: {},
|
|
|
|
customDirectEventTypes: {},
|
2015-04-24 21:43:14 +00:00
|
|
|
Dimensions: {},
|
2015-09-01 00:34:51 +00:00
|
|
|
RCTModalFullscreenView: {
|
|
|
|
Constants: {},
|
|
|
|
},
|
|
|
|
RCTScrollView: {
|
|
|
|
Constants: {},
|
|
|
|
},
|
2015-04-23 16:41:45 +00:00
|
|
|
},
|
|
|
|
AsyncLocalStorage: {
|
2016-04-28 02:15:28 +00:00
|
|
|
getItem: jest.fn(),
|
|
|
|
setItem: jest.fn(),
|
|
|
|
removeItem: jest.fn(),
|
|
|
|
clear: jest.fn(),
|
2015-04-23 16:41:45 +00:00
|
|
|
},
|
|
|
|
SourceCode: {
|
|
|
|
scriptURL: null,
|
|
|
|
},
|
2015-07-29 00:59:33 +00:00
|
|
|
BuildInfo: {
|
|
|
|
appVersion: '0',
|
|
|
|
buildVersion: '0',
|
|
|
|
},
|
2015-09-01 00:34:51 +00:00
|
|
|
ModalFullscreenViewManager: {},
|
|
|
|
AlertManager: {
|
2016-04-28 02:15:28 +00:00
|
|
|
alertWithArgs: jest.fn(),
|
2015-09-01 00:34:51 +00:00
|
|
|
},
|
2015-12-09 18:00:19 +00:00
|
|
|
Clipboard: {
|
2016-04-28 02:15:28 +00:00
|
|
|
setString: jest.fn(),
|
2015-09-01 00:34:51 +00:00
|
|
|
},
|
2015-04-23 16:41:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = NativeModules;
|