import {Alert} from 'react-native'

export const showGeneralError = (onDismiss: () => any) => {
	Alert.alert(
		'An unexpected error occurred',
		"We're sorry, but we have lost communication with Papercut. Please try again.",
		[{text: 'OK', onPress: onDismiss}],
	)
}

import {Alert} from 'react-native'

export const showGeneralError = (onDismiss: () => any): void => {
	Alert.alert(
		'An unexpected error occurred',
		"We're sorry, but we have lost communication with Papercut. Please try again.",
		[{text: 'OK', onPress: onDismiss}],
	)
}

Add return types on boundary functions
l/stoprint: Add return types on boundary functions

Signed-off-by: Kristofer Rye <1ed31cfd0b53bc3d1689a6fee6dbfc9507dffd22@gmail.com>
