MCPcopy Create free account
hub / github.com/CommE2E/comm / showInAppNotification

Method showInAppNotification

native/push/push-handler.react.js:777–797  ·  view source on GitHub ↗
(threadID: string, message: string, title?: ?string)

Source from the content-addressed store, hash-verified

775 };
776
777 showInAppNotification(threadID: string, message: string, title?: ?string) {
778 if (threadID === this.props.activeThread) {
779 return;
780 }
781 this.setState({
782 inAppNotifProps: {
783 customComponent: (
784 <InAppNotif
785 title={title}
786 message={message}
787 activeTheme={this.props.activeTheme}
788 />
789 ),
790 blurType: this.props.activeTheme === 'dark' ? 'xlight' : 'dark',
791 onPress: () => {
792 InAppNotification.hide();
793 this.onPressNotificationForThread(threadID, false);
794 },
795 },
796 });
797 }
798
799 androidNotificationOpened = async (threadID: string) => {
800 this.onPushNotifBootsApp();

Callers 1

PushHandlerClass · 0.95

Calls 1

Tested by

no test coverage detected