diff --git a/__mocks__/bugsnag-react-native.js b/__mocks__/bugsnag-react-native.js new file mode 100644 index 000000000..637b8e450 --- /dev/null +++ b/__mocks__/bugsnag-react-native.js @@ -0,0 +1,8 @@ +export class Client { } + +export default { + bugsnag: () => '', + leaveBreadcrumb: () => '', + notify: () => '', + loggerConfig: () => '' +}; diff --git a/__mocks__/react-native-firebase.js b/__mocks__/react-native-firebase.js new file mode 100644 index 000000000..582f7cea1 --- /dev/null +++ b/__mocks__/react-native-firebase.js @@ -0,0 +1,3 @@ +export default { + analytics: null +}; diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap index 6d5507b94..ed7afaf9e 100644 --- a/__tests__/__snapshots__/Storyshots.test.js.snap +++ b/__tests__/__snapshots__/Storyshots.test.js.snap @@ -27460,6 +27460,7 @@ exports[`Storyshots Message list message 1`] = ` Support o).length; + const onLongPress = () => { + Clipboard.setString(link); + EventEmitter.emit(LISTENER, { message: I18n.t('Copied_to_clipboard') }); + }; // if you have a [](https://rocket.chat) render https://rocket.chat return ( openLink(url.url, theme); + const onLongPress = () => { + Clipboard.setString(url.url); + EventEmitter.emit(LISTENER, { message: I18n.t('Copied_to_clipboard') }); + }; + return ( 0 && styles.marginTop,