mattermost-mobile/index.js
enahum 676a3c4bda
Fix share extension (#1386)
* Remove iOS extension garbage code

* Fix Android Share Extension crash
2018-01-26 18:50:08 -03:00

14 lines
440 B
JavaScript

// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
/* eslint-disable no-unused-vars */
import {AppRegistry, Platform} from 'react-native';
import Mattermost from 'app/mattermost';
import ShareExtension from 'share_extension/android';
if (Platform.OS === 'android') {
AppRegistry.registerComponent('MattermostShare', () => ShareExtension);
}
const app = new Mattermost();