2015-04-23 09:41:45 -07:00
|
|
|
/**
|
2016-06-29 21:52:00 -07: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 09:41:45 -07:00
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var NativeModules = {
|
|
|
|
I18n: {
|
2015-04-27 15:58:21 -07:00
|
|
|
translationsDictionary: JSON.stringify({
|
2015-04-23 09:41:45 -07:00
|
|
|
'Good bye, {name}!|Bye message': '¡Adiós {name}!',
|
2015-04-27 15:58:21 -07:00
|
|
|
}),
|
2015-04-23 09:41:45 -07:00
|
|
|
},
|
|
|
|
Timing: {
|
2016-04-27 19:15:28 -07:00
|
|
|
createTimer: jest.fn(),
|
|
|
|
deleteTimer: jest.fn(),
|
2015-04-23 09:41:45 -07:00
|
|
|
},
|
|
|
|
GraphPhotoUpload: {
|
2016-04-27 19:15:28 -07:00
|
|
|
upload: jest.fn(),
|
2015-04-23 09:41:45 -07:00
|
|
|
},
|
|
|
|
FacebookSDK: {
|
2016-04-27 19:15:28 -07:00
|
|
|
login: jest.fn(),
|
|
|
|
logout: jest.fn(),
|
|
|
|
queryGraphPath: jest.fn((path, method, params, callback) => callback()),
|
2015-04-23 09:41:45 -07:00
|
|
|
},
|
|
|
|
DataManager: {
|
2016-04-27 19:15:28 -07:00
|
|
|
queryData: jest.fn(),
|
2015-04-23 09:41:45 -07:00
|
|
|
},
|
|
|
|
UIManager: {
|
|
|
|
customBubblingEventTypes: {},
|
|
|
|
customDirectEventTypes: {},
|
2016-06-29 21:52:00 -07:00
|
|
|
Dimensions: {
|
|
|
|
window: {
|
|
|
|
width: 750,
|
|
|
|
height: 1334,
|
|
|
|
scale: 2,
|
|
|
|
fontScale: 2,
|
|
|
|
}
|
|
|
|
},
|
2015-08-31 17:34:51 -07:00
|
|
|
RCTModalFullscreenView: {
|
|
|
|
Constants: {},
|
|
|
|
},
|
|
|
|
RCTScrollView: {
|
|
|
|
Constants: {},
|
|
|
|
},
|
2015-04-23 09:41:45 -07:00
|
|
|
},
|
|
|
|
AsyncLocalStorage: {
|
2016-04-27 19:15:28 -07:00
|
|
|
getItem: jest.fn(),
|
|
|
|
setItem: jest.fn(),
|
|
|
|
removeItem: jest.fn(),
|
|
|
|
clear: jest.fn(),
|
2015-04-23 09:41:45 -07:00
|
|
|
},
|
|
|
|
SourceCode: {
|
|
|
|
scriptURL: null,
|
|
|
|
},
|
2015-07-28 17:59:33 -07:00
|
|
|
BuildInfo: {
|
|
|
|
appVersion: '0',
|
|
|
|
buildVersion: '0',
|
|
|
|
},
|
2015-08-31 17:34:51 -07:00
|
|
|
ModalFullscreenViewManager: {},
|
|
|
|
AlertManager: {
|
2016-04-27 19:15:28 -07:00
|
|
|
alertWithArgs: jest.fn(),
|
2015-08-31 17:34:51 -07:00
|
|
|
},
|
2015-12-09 10:00:19 -08:00
|
|
|
Clipboard: {
|
2016-04-27 19:15:28 -07:00
|
|
|
setString: jest.fn(),
|
2015-08-31 17:34:51 -07:00
|
|
|
},
|
2016-08-15 12:08:47 -07:00
|
|
|
FbRelayNativeAdapter: {
|
|
|
|
updateCLC: jest.fn(),
|
|
|
|
},
|
2015-04-23 09:41:45 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = NativeModules;
|