Size: a a a

React Native — русскоговорящее сообщество

2021 June 18

M

Mike in React Native — русскоговорящее сообщество
android studio preview у меня стоит
источник

А

А-228 in React Native — русскоговорящее сообщество
Как понять когда использовать TouchableHighlight или TouchbleOpacity?
источник

M

Mike in React Native — русскоговорящее сообщество
Они разные по визуальному исполнению.
источник

А

А-228 in React Native — русскоговорящее сообщество
Если делать разные анимации или изменение кнопки при нажатии на неё, то используют TouchableHighlight?
источник

M

Mike in React Native — русскоговорящее сообщество
TouchableOpacity то же меняется (opacity)
источник

VB

Vladislav Bezenson in React Native — русскоговорящее сообщество
Смотря какие анимации вам нужны. Я недавно reanimated вообще юзал, чтобы скейлить при нажатии
источник
2021 June 19

А

А-228 in React Native — русскоговорящее сообщество
Как можно в return компоненты  сделать условие?
Я делал с помощью тернара, но там всего лишь два выражение могут возвращаться, а мне нужно три. Очень важно, что именно в return компоненты нужно делать проверку, а не до этого.
источник

МП

Максим Патрушев... in React Native — русскоговорящее сообщество
Сделай ещё одну вложенную тернарку или свитч.
источник

ЦС

Церго Сыров... in React Native — русскоговорящее сообщество
Еще .match() && и .matchAll() && может быть удобно )
источник

B

BaKs in React Native — русскоговорящее сообщество
Ребзя xелп
источник

B

BaKs in React Native — русскоговорящее сообщество
`
In file included from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:1:
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.h:19:54: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
- (void)didRegisterUserNotificationSettings:(nonnull UIUserNotificationSettings *)notificationSettings;
                                                    ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
@interface UIUserNotificationSettings : NSObject
          ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:56:47: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
- (void) didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings {
                                             ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
@interface UIUserNotificationSettings : NSObject
          ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:91:51: error: expected a type
- (void)applicationReceivedRemoteMessage:(nonnull FIRMessagingRemoteMessage *)remoteMessage {
                                                 ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:99:28: error: expected a type
didReceiveMessage:(nonnull FIRMessagingRemoteMessage *)remoteMessage {
                          ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:278:50: error: expected a type
- (NSDictionary*)parseFIRMessagingRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
                                                ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:44:30: error: property 'shouldEstablishDirectChannel' not found on object of type 'FIRMessaging *'
   [FIRMessaging messaging].shouldEstablishDirectChannel = YES;
                            ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:57:39: warning: 'UIUserNotificationTypeNone' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
   if (notificationSettings.types == UIUserNotificationTypeNone) {
                                     ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked dep
источник

B

BaKs in React Native — русскоговорящее сообщество
recated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                              ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:162:9: warning: 'UIUserNotificationType' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
       UIUserNotificationType types = (UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);
       ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                              ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:162:41: warning: 'UIUserNotificationTypeSound' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
       UIUserNotificationType types = (UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);
                                       ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                              ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:162:71: warning: 'UIUserNotificationTypeAlert' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
       UIUserNotificationType types = (UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);
                                                                     ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                              ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:162:101: warning: 'UIUserNotificationTypeBadge' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
       UIUserNotificationType types = (UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge);
                                                                                                   ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotif
источник

B

BaKs in React Native — русскоговорящее сообщество
icationType) {
                              ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:164:98: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
           [RCTSharedApplication() registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:types categories:nil]];
                                                                                                ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
@interface UIUserNotificationSettings : NSObject
          ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:164:37: warning: 'registerUserNotificationSettings:' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:] [-Wdeprecated-declarations]
           [RCTSharedApplication() registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:types categories:nil]];
                                   ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:250:1: note: 'registerUserNotificationSettings:' has been explicitly marked deprecated here
- (void)registerUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings API_DEPRECATED("Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:]", ios(8.0, 10.0)) API_UNAVAILABLE(tvos);
^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:198:75: warning: 'currentUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:] [-Wdeprecated-declarations]
         BOOL hasPermission = [RCTConvert BOOL:@([RCTSharedApplication() currentUserNotificationSettings].types != UIUserNotificationTypeNone)];
                                                                         ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:253:70: note: property 'currentUserNotificationSettings' is declared deprecated here
@property(nonatomic, readonly, nullable) UIUserNotificationSettings *currentUserNotificationSettings API_DEPRECATED("Use UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:]", ios(8.0, 10.0)) API_UNAVAILABLE(tvos);
                                                                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework
источник

B

BaKs in React Native — русскоговорящее сообщество
/Headers/UIApplication.h:253:70: note: 'currentUserNotificationSettings' has been explicitly marked deprecated here
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:198:117: warning: 'UIUserNotificationTypeNone' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions [-Wdeprecated-declarations]
         BOOL hasPermission = [RCTConvert BOOL:@([RCTSharedApplication() currentUserNotificationSettings].types != UIUserNotificationTypeNone)];
                                                                                                                   ^
In module 'UIKit' imported from /Users/admin/Documents/Dev/RN_Projects/BabyCourse/ios/Pods/Target Support Files/RNFirebase/RNFirebase-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:17:32: note: 'UIUserNotificationType' has been explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIUserNotificationType) {
                              ^
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:223:31: error: no visible @interface for 'FIRMessaging' declares the selector 'sendMessage:to:withMessageID:timeToLive:'
   [[FIRMessaging messaging] sendMessage:data to:to withMessageID:messageId timeToLive:[ttl intValue]];
    ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/Documents/Dev/RN_Projects/BabyCourse/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:279:43: error: property 'appData' not found on object of type '__strong id'
   NSDictionary *appData = remoteMessage.appData;
источник

M

Mike in React Native — русскоговорящее сообщество
Похоже на спам в группе)))
источник

А

А-228 in React Native — русскоговорящее сообщество
А что это
источник

B

BaKs in React Native — русскоговорящее сообщество
Каким образом?
источник

B

BaKs in React Native — русскоговорящее сообщество
Проблема при запуске симулятора иос
источник

ᅠᅠᅠАлександрᅠᅠᅠ... in React Native — русскоговорящее сообщество
Парни, на ios можно хэндлить события в приложении такие как двойное касание по airpods?
источник

B

BaKs in React Native — русскоговорящее сообщество
после попытки подключения firebase && firebase-messaging && react-native-push-notification/ios
источник