first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
#import "RCTConvert+RNScreens.h"
#if !RCT_NEW_ARCH_ENABLED
#import "RNSEnums.h"
@implementation RCTConvert (RNScreens)
+ (NSMutableDictionary *)blurEffectsForIOSVersion
{
NSMutableDictionary *blurEffects = [NSMutableDictionary new];
[blurEffects addEntriesFromDictionary:@{
@"none" : @(RNSBlurEffectStyleNone),
@"systemDefault" : @(RNSBlurEffectStyleSystemDefault),
@"extraLight" : @(RNSBlurEffectStyleExtraLight),
@"light" : @(RNSBlurEffectStyleLight),
@"dark" : @(RNSBlurEffectStyleDark),
@"regular" : @(RNSBlurEffectStyleRegular),
@"prominent" : @(RNSBlurEffectStyleProminent),
}];
#if !TARGET_OS_TV
[blurEffects addEntriesFromDictionary:@{
@"systemUltraThinMaterial" : @(RNSBlurEffectStyleSystemUltraThinMaterial),
@"systemThinMaterial" : @(RNSBlurEffectStyleSystemThinMaterial),
@"systemMaterial" : @(RNSBlurEffectStyleSystemMaterial),
@"systemThickMaterial" : @(RNSBlurEffectStyleSystemThickMaterial),
@"systemChromeMaterial" : @(RNSBlurEffectStyleSystemChromeMaterial),
@"systemUltraThinMaterialLight" : @(RNSBlurEffectStyleSystemUltraThinMaterialLight),
@"systemThinMaterialLight" : @(RNSBlurEffectStyleSystemThinMaterialLight),
@"systemMaterialLight" : @(RNSBlurEffectStyleSystemMaterialLight),
@"systemThickMaterialLight" : @(RNSBlurEffectStyleSystemThickMaterialLight),
@"systemChromeMaterialLight" : @(RNSBlurEffectStyleSystemChromeMaterialLight),
@"systemUltraThinMaterialDark" : @(RNSBlurEffectStyleSystemUltraThinMaterialDark),
@"systemThinMaterialDark" : @(RNSBlurEffectStyleSystemThinMaterialDark),
@"systemMaterialDark" : @(RNSBlurEffectStyleSystemMaterialDark),
@"systemThickMaterialDark" : @(RNSBlurEffectStyleSystemThickMaterialDark),
@"systemChromeMaterialDark" : @(RNSBlurEffectStyleSystemChromeMaterialDark),
}];
#endif
return blurEffects;
}
RCT_ENUM_CONVERTER(RNSBlurEffectStyle, ([self blurEffectsForIOSVersion]), RNSBlurEffectStyleSystemDefault, integerValue)
RCT_ENUM_CONVERTER(
RNSOptionalBoolean,
(@{
@"undefined" : @(RNSOptionalBooleanUndefined),
@"true" : @(RNSOptionalBooleanTrue),
@"false" : @(RNSOptionalBooleanFalse),
}),
RNSOptionalBooleanUndefined,
integerValue)
RCT_ENUM_CONVERTER(
RNSScrollEdgeEffect,
(@{
@"automatic" : @(RNSScrollEdgeEffectAutomatic),
@"hard" : @(RNSScrollEdgeEffectHard),
@"soft" : @(RNSScrollEdgeEffectSoft),
@"hidden" : @(RNSScrollEdgeEffectHidden),
}),
RNSScrollEdgeEffectAutomatic,
integerValue)
@end
#endif // !RCT_NEW_ARCH_ENABLED