2015-04-23 16:41:45 +00:00
|
|
|
/**
|
2016-06-30 04:52:00 +00:00
|
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*
|
2015-04-23 16:41:45 +00:00
|
|
|
*/
|
|
|
|
'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: {},
|
2016-06-30 04:52:00 +00:00
|
|
|
Dimensions: {
|
|
|
|
window: {
|
|
|
|
width: 750,
|
|
|
|
height: 1334,
|
|
|
|
scale: 2,
|
|
|
|
fontScale: 2,
|
|
|
|
}
|
|
|
|
},
|
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
|
|
|
},
|
2016-08-15 19:08:47 +00:00
|
|
|
FbRelayNativeAdapter: {
|
|
|
|
updateCLC: jest.fn(),
|
|
|
|
},
|
2015-04-23 16:41:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = NativeModules;
|