<NotifierWrapper omitGlobalMethodsHookup={true}>
<Button
title="omitGlobalMethodsHookup"
onPress={() =>
Notifier.showNotification({
title: 'omitGlobalMethodsHookup',
description: 'omitGlobalMethodsHookup测试,设置为true',
})
}
/>
<Button title="全局方法关闭通知" onPress={() => Notifier.hideNotification()} />
</NotifierWrapper>
<NotifierWrapper omitGlobalMethodsHookup={false}>
<Button
title="omitGlobalMethodsHookup"
onPress={() =>
Notifier.showNotification({
title: 'omitGlobalMethodsHookup',
description: 'omitGlobalMethodsHookup测试,默认为false',
})
}
/>
<Button title="全局方法关闭通知" onPress={() => Notifier.hideNotification()} />
</NotifierWrapper>
<GestureHandlerRootView style={{ flex: 1 }}></GestureHandlerRootView>