Files
notesnook/apps/mobile/share/index.js
2022-07-07 14:33:54 +05:00

22 lines
527 B
JavaScript

import React, { Fragment } from 'react';
import { Modal, Platform } from 'react-native';
import ShareView from './share';
const Wrapper = Platform.OS === 'android' ? Modal : Fragment;
const outerProps =
Platform.OS === 'android'
? {
animationType: 'fade',
transparent: true,
visible: true
}
: {};
const NotesnookShare = ({ quicknote = false }) => {
return (
<Wrapper {...outerProps}>
<ShareView quicknote={quicknote} />
</Wrapper>
);
};
export default NotesnookShare;