mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
22 lines
527 B
JavaScript
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;
|