Skip to content

omitGlobalMethodsHookup 未生效 #102

@01xkp

Description

@01xkp

<GestureHandlerRootView style={{ flex: 1 }}>

               <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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions