react-native-toast-native icon indicating copy to clipboard operation
react-native-toast-native copied to clipboard

RNToastNative has a warning [requiresMainQueueSetup]

Open ghost opened this issue 7 years ago • 3 comments

I added the following code in the RNToastNative

+ (BOOL) requiresMainQueueSetup {
Return YES;
}

Warnings will disappear.

react-native 0.56.0

ghost avatar Aug 17 '18 09:08 ghost

@shx1545 Where should I put this code in the folder "RNToastNative" my man ?

Zacele avatar Aug 24 '18 10:08 Zacele

i also receive that warning

yimankaing avatar Aug 31 '18 08:08 yimankaing

@Zacele To fix this problem, this code:

+ (BOOL) requiresMainQueueSetup {
    return YES;
}

has to be added in RNToastNative.m inside the RNToastNative class implementation.

albemala avatar Oct 01 '18 08:10 albemala