mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-12 08:14:34 +08:00
Summary: I removed var in ReactAndroid/src/androidTest. - [x] npm run prettier - [x] npm run flow-check-ios - [x] npm run flow-check-android [GENERAL] [ReactAndroid/src/androidTest] - remove var Pull Request resolved: https://github.com/facebook/react-native/pull/22136 Differential Revision: D12921227 Pulled By: TheSavior fbshipit-source-id: 45c03a52a5eafa25965aa785da094421c3df3999
37 lines
890 B
JavaScript
37 lines
890 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const BatchedBridge = require('BatchedBridge');
|
|
const React = require('React');
|
|
const RecordingModule = require('NativeModules').ShareRecordingModule;
|
|
const Share = require('Share');
|
|
const View = require('View');
|
|
|
|
class ShareTestApp extends React.Component {
|
|
render() {
|
|
return <View />;
|
|
}
|
|
}
|
|
|
|
const ShareTestModule = {
|
|
ShareTestApp: ShareTestApp,
|
|
showShareDialog: function(content, options) {
|
|
Share.share(content, options).then(
|
|
() => RecordingModule.recordOpened(),
|
|
({code, message}) => RecordingModule.recordError(),
|
|
);
|
|
},
|
|
};
|
|
|
|
BatchedBridge.registerCallableModule('ShareTestModule', ShareTestModule);
|
|
|
|
module.exports = ShareTestModule;
|