@amazon-devices/react-native-safe-area-context 2.0.9000000000 → 2.0.9000000001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/SystemBundles/{85c8d24b7f717b77a2deb00e32cc2aaa293a5a16c46eecebca21e95bda425730.bundle → 51fc85bf8d38b1dffede0d601b4549191dcfd495b78de3007c0b6f0f183163ac.bundle} +805 -2723
  2. package/SystemBundles/51fc85bf8d38b1dffede0d601b4549191dcfd495b78de3007c0b6f0f183163ac.map +3579 -0
  3. package/SystemModules/amzn__react-native-safe-area-context-2.modules.txt +1 -37
  4. package/SystemModules/amzn__react-native-safe-area-context-2.private.modules.txt +29 -36
  5. package/kepler-compatibility.json +3 -2
  6. package/lib/commonjs/CompatNativeSafeAreaProvider.js.map +1 -1
  7. package/lib/commonjs/InitialWindow.js.map +1 -1
  8. package/lib/commonjs/InitialWindow.kepler.js.map +1 -1
  9. package/lib/commonjs/InitialWindow.native.js.map +1 -1
  10. package/lib/commonjs/NativeSafeAreaProvider.js +3 -0
  11. package/lib/commonjs/NativeSafeAreaProvider.js.map +1 -1
  12. package/lib/commonjs/NativeSafeAreaProvider.kepler.js.map +1 -1
  13. package/lib/commonjs/NativeSafeAreaProvider.macos.js.map +1 -1
  14. package/lib/commonjs/NativeSafeAreaProvider.native.js.map +1 -1
  15. package/lib/commonjs/NativeSafeAreaProvider.windows.js.map +1 -1
  16. package/lib/commonjs/SafeArea.types.js.map +1 -1
  17. package/lib/commonjs/SafeAreaContext.js +2 -3
  18. package/lib/commonjs/SafeAreaContext.js.map +1 -1
  19. package/lib/commonjs/SafeAreaView.js.map +1 -1
  20. package/lib/commonjs/SafeAreaView.kepler.js.map +1 -1
  21. package/lib/commonjs/SafeAreaView.macos.js.map +1 -1
  22. package/lib/commonjs/SafeAreaView.native.js.map +1 -1
  23. package/lib/commonjs/SafeAreaView.windows.js.map +1 -1
  24. package/lib/commonjs/index.js.map +1 -1
  25. package/lib/commonjs/useWindowDimensions.js.map +1 -1
  26. package/lib/module/CompatNativeSafeAreaProvider.js.map +1 -1
  27. package/lib/module/InitialWindow.js.map +1 -1
  28. package/lib/module/InitialWindow.kepler.js.map +1 -1
  29. package/lib/module/InitialWindow.native.js.map +1 -1
  30. package/lib/module/NativeSafeAreaProvider.js +2 -0
  31. package/lib/module/NativeSafeAreaProvider.js.map +1 -1
  32. package/lib/module/NativeSafeAreaProvider.kepler.js.map +1 -1
  33. package/lib/module/NativeSafeAreaProvider.macos.js.map +1 -1
  34. package/lib/module/NativeSafeAreaProvider.native.js.map +1 -1
  35. package/lib/module/NativeSafeAreaProvider.windows.js.map +1 -1
  36. package/lib/module/SafeArea.types.js.map +1 -1
  37. package/lib/module/SafeAreaContext.js +2 -3
  38. package/lib/module/SafeAreaContext.js.map +1 -1
  39. package/lib/module/SafeAreaView.js.map +1 -1
  40. package/lib/module/SafeAreaView.kepler.js.map +1 -1
  41. package/lib/module/SafeAreaView.macos.js.map +1 -1
  42. package/lib/module/SafeAreaView.native.js.map +1 -1
  43. package/lib/module/SafeAreaView.windows.js.map +1 -1
  44. package/lib/module/index.js.map +1 -1
  45. package/lib/module/useWindowDimensions.js.map +1 -1
  46. package/lib/typescript/CompatNativeSafeAreaProvider.d.ts +4 -0
  47. package/lib/typescript/CompatNativeSafeAreaProvider.d.ts.map +1 -0
  48. package/lib/typescript/{src/InitialWindow.d.ts → InitialWindow.d.ts} +2 -1
  49. package/lib/typescript/InitialWindow.d.ts.map +1 -0
  50. package/lib/typescript/{src/InitialWindow.kepler.d.ts → InitialWindow.kepler.d.ts} +1 -0
  51. package/lib/typescript/InitialWindow.kepler.d.ts.map +1 -0
  52. package/lib/typescript/{src/InitialWindow.native.d.ts → InitialWindow.native.d.ts} +1 -0
  53. package/lib/typescript/InitialWindow.native.d.ts.map +1 -0
  54. package/lib/typescript/NativeSafeAreaProvider.d.ts +4 -0
  55. package/lib/typescript/NativeSafeAreaProvider.d.ts.map +1 -0
  56. package/lib/typescript/{src/NativeSafeAreaProvider.kepler.d.ts → NativeSafeAreaProvider.kepler.d.ts} +1 -0
  57. package/lib/typescript/NativeSafeAreaProvider.kepler.d.ts.map +1 -0
  58. package/lib/typescript/{src/NativeSafeAreaProvider.macos.d.ts → NativeSafeAreaProvider.macos.d.ts} +1 -0
  59. package/lib/typescript/NativeSafeAreaProvider.macos.d.ts.map +1 -0
  60. package/lib/typescript/{src/NativeSafeAreaProvider.native.d.ts → NativeSafeAreaProvider.native.d.ts} +1 -0
  61. package/lib/typescript/NativeSafeAreaProvider.native.d.ts.map +1 -0
  62. package/lib/typescript/{src/NativeSafeAreaProvider.windows.d.ts → NativeSafeAreaProvider.windows.d.ts} +1 -0
  63. package/lib/typescript/NativeSafeAreaProvider.windows.d.ts.map +1 -0
  64. package/lib/typescript/{src/SafeArea.types.d.ts → SafeArea.types.d.ts} +2 -1
  65. package/lib/typescript/SafeArea.types.d.ts.map +1 -0
  66. package/lib/typescript/{src/SafeAreaContext.d.ts → SafeAreaContext.d.ts} +4 -3
  67. package/lib/typescript/SafeAreaContext.d.ts.map +1 -0
  68. package/lib/typescript/SafeAreaView.d.ts +4 -0
  69. package/lib/typescript/SafeAreaView.d.ts.map +1 -0
  70. package/lib/typescript/{src/SafeAreaView.kepler.d.ts → SafeAreaView.kepler.d.ts} +1 -0
  71. package/lib/typescript/SafeAreaView.kepler.d.ts.map +1 -0
  72. package/lib/typescript/{src/SafeAreaView.macos.d.ts → SafeAreaView.macos.d.ts} +1 -0
  73. package/lib/typescript/SafeAreaView.macos.d.ts.map +1 -0
  74. package/lib/typescript/{src/SafeAreaView.native.d.ts → SafeAreaView.native.d.ts} +1 -0
  75. package/lib/typescript/SafeAreaView.native.d.ts.map +1 -0
  76. package/lib/typescript/{src/SafeAreaView.windows.d.ts → SafeAreaView.windows.d.ts} +1 -0
  77. package/lib/typescript/SafeAreaView.windows.d.ts.map +1 -0
  78. package/lib/typescript/{src/index.d.ts → index.d.ts} +1 -0
  79. package/lib/typescript/index.d.ts.map +1 -0
  80. package/lib/typescript/{src/useWindowDimensions.d.ts → useWindowDimensions.d.ts} +1 -0
  81. package/lib/typescript/useWindowDimensions.d.ts.map +1 -0
  82. package/package.json +1 -1
  83. package/src/InitialWindow.ts +1 -1
  84. package/src/NativeSafeAreaProvider.tsx +3 -1
  85. package/src/SafeArea.types.ts +1 -1
  86. package/src/SafeAreaContext.tsx +2 -2
  87. package/src/SafeAreaView.tsx +1 -1
  88. package/src/__tests__/InitialWindow-test.tsx +47 -0
  89. package/src/__tests__/SafeAreaContext-test.tsx +121 -0
  90. package/src/__tests__/SafeAreaView-test.tsx +35 -0
  91. package/src/__tests__/__snapshots__/SafeAreaContext-test.tsx.snap +183 -0
  92. package/src/__tests__/__snapshots__/SafeAreaView-test.tsx.snap +43 -0
  93. package/SystemBundles/85c8d24b7f717b77a2deb00e32cc2aaa293a5a16c46eecebca21e95bda425730.map +0 -4335
  94. package/android/build.gradle +0 -46
  95. package/android/src/main/AndroidManifest.xml +0 -6
  96. package/android/src/main/java/com/th3rdwave/safeareacontext/EdgeInsets.java +0 -22
  97. package/android/src/main/java/com/th3rdwave/safeareacontext/InsetsChangeEvent.java +0 -33
  98. package/android/src/main/java/com/th3rdwave/safeareacontext/Rect.java +0 -22
  99. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.java +0 -31
  100. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaProvider.java +0 -66
  101. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaProviderManager.java +0 -94
  102. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaUtils.java +0 -82
  103. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaView.java +0 -159
  104. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewEdges.java +0 -8
  105. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewLocalData.java +0 -27
  106. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewManager.java +0 -72
  107. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewMode.java +0 -6
  108. package/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewShadowNode.java +0 -201
  109. package/android/src/main/java/com/th3rdwave/safeareacontext/SerializationUtils.java +0 -52
  110. package/ios/SafeAreaView/RCTView+SafeAreaCompat.h +0 -16
  111. package/ios/SafeAreaView/RCTView+SafeAreaCompat.m +0 -57
  112. package/ios/SafeAreaView/RNCSafeAreaProvider.h +0 -13
  113. package/ios/SafeAreaView/RNCSafeAreaProvider.m +0 -65
  114. package/ios/SafeAreaView/RNCSafeAreaProviderManager.h +0 -9
  115. package/ios/SafeAreaView/RNCSafeAreaProviderManager.m +0 -61
  116. package/ios/SafeAreaView/RNCSafeAreaShadowView.h +0 -9
  117. package/ios/SafeAreaView/RNCSafeAreaShadowView.m +0 -180
  118. package/ios/SafeAreaView/RNCSafeAreaView.h +0 -21
  119. package/ios/SafeAreaView/RNCSafeAreaView.m +0 -118
  120. package/ios/SafeAreaView/RNCSafeAreaViewEdges.h +0 -9
  121. package/ios/SafeAreaView/RNCSafeAreaViewEdges.m +0 -13
  122. package/ios/SafeAreaView/RNCSafeAreaViewLocalData.h +0 -18
  123. package/ios/SafeAreaView/RNCSafeAreaViewLocalData.m +0 -16
  124. package/ios/SafeAreaView/RNCSafeAreaViewManager.h +0 -9
  125. package/ios/SafeAreaView/RNCSafeAreaViewManager.m +0 -25
  126. package/ios/SafeAreaView/RNCSafeAreaViewMode.h +0 -7
  127. package/ios/SafeAreaView/RNCSafeAreaViewMode.m +0 -11
  128. package/ios/SafeAreaView.xcodeproj/project.pbxproj +0 -338
  129. package/lib/typescript/src/CompatNativeSafeAreaProvider.d.ts +0 -2
  130. package/lib/typescript/src/NativeSafeAreaProvider.d.ts +0 -2
  131. package/lib/typescript/src/SafeAreaView.d.ts +0 -2
  132. package/react-native-safe-area-context.podspec +0 -19
@@ -1,118 +0,0 @@
1
- #import "RNCSafeAreaView.h"
2
-
3
- #import <React/RCTBridge.h>
4
- #import <React/RCTUIManager.h>
5
-
6
- #import "RNCSafeAreaViewLocalData.h"
7
- #import "RNCSafeAreaViewMode.h"
8
- #import "RNCSafeAreaViewEdges.h"
9
- #import "RCTView+SafeAreaCompat.h"
10
- #import "RNCSafeAreaProvider.h"
11
-
12
- @implementation RNCSafeAreaView {
13
- __weak RCTBridge *_bridge;
14
- UIEdgeInsets _currentSafeAreaInsets;
15
- RNCSafeAreaViewMode _mode;
16
- RNCSafeAreaViewEdges _edges;
17
- __weak UIView * _Nullable _providerView;
18
- }
19
-
20
- - (instancetype)initWithBridge:(RCTBridge *)bridge
21
- {
22
- if (self = [super initWithFrame:CGRectZero]) {
23
- _bridge = bridge;
24
- // Defaults
25
- _mode = RNCSafeAreaViewModePadding;
26
- _edges = RNCSafeAreaViewEdgesAll;
27
- }
28
-
29
- return self;
30
- }
31
-
32
- RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : (NSCoder *)decoder)
33
- RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
34
-
35
- - (NSString *)description
36
- {
37
- NSString *superDescription = [super description];
38
-
39
- // Cutting the last `>` character.
40
- if (superDescription.length > 0 && [superDescription characterAtIndex:superDescription.length - 1] == '>') {
41
- superDescription = [superDescription substringToIndex:superDescription.length - 1];
42
- }
43
-
44
- return [NSString stringWithFormat:@"%@; RNCSafeAreaInsets = %@; appliedRNCSafeAreaInsets = %@>",
45
- superDescription,
46
- NSStringFromUIEdgeInsets([_providerView safeAreaInsetsOrEmulate]),
47
- NSStringFromUIEdgeInsets(_currentSafeAreaInsets)];
48
- }
49
-
50
- - (void)safeAreaInsetsDidChange
51
- {
52
- [super safeAreaInsetsDidChange];
53
- [self invalidateSafeAreaInsets];
54
- }
55
-
56
- - (void)layoutSubviews
57
- {
58
- [super layoutSubviews];
59
-
60
- if (!self.nativeSafeAreaSupport) {
61
- [self invalidateSafeAreaInsets];
62
- }
63
- }
64
-
65
- - (void)didMoveToWindow
66
- {
67
- _providerView = [self findNearestProvider];
68
- [self invalidateSafeAreaInsets];
69
- }
70
-
71
- - (void)invalidateSafeAreaInsets
72
- {
73
- if (_providerView == nil) {
74
- return;
75
- }
76
- UIEdgeInsets safeAreaInsets = [_providerView safeAreaInsetsOrEmulate];
77
-
78
- if (UIEdgeInsetsEqualToEdgeInsetsWithThreshold(safeAreaInsets, _currentSafeAreaInsets, 1.0 / RCTScreenScale())) {
79
- return;
80
- }
81
-
82
- _currentSafeAreaInsets = safeAreaInsets;
83
- [self updateLocalData];
84
- }
85
-
86
- - (UIView *)findNearestProvider
87
- {
88
- UIView *current = self.reactSuperview;
89
- while (current != nil) {
90
- if ([current isKindOfClass:RNCSafeAreaProvider.class] ) {
91
- return current;
92
- }
93
- current = current.reactSuperview;
94
- }
95
- return self;
96
- }
97
-
98
- - (void)updateLocalData
99
- {
100
- RNCSafeAreaViewLocalData *localData = [[RNCSafeAreaViewLocalData alloc] initWithInsets:_currentSafeAreaInsets
101
- mode:_mode
102
- edges:_edges];
103
- [_bridge.uiManager setLocalData:localData forView:self];
104
- }
105
-
106
- - (void)setMode:(RNCSafeAreaViewMode)mode
107
- {
108
- _mode = mode;
109
- [self updateLocalData];
110
- }
111
-
112
- - (void)setEdges:(RNCSafeAreaViewEdges)edges
113
- {
114
- _edges = edges;
115
- [self updateLocalData];
116
- }
117
-
118
- @end
@@ -1,9 +0,0 @@
1
- #import <Foundation/Foundation.h>
2
-
3
- typedef NS_ENUM(NSInteger, RNCSafeAreaViewEdges) {
4
- RNCSafeAreaViewEdgesTop = 0b1000,
5
- RNCSafeAreaViewEdgesRight = 0b0100,
6
- RNCSafeAreaViewEdgesBottom = 0b0010,
7
- RNCSafeAreaViewEdgesLeft = 0b0001,
8
- RNCSafeAreaViewEdgesAll = 0b1111,
9
- };
@@ -1,13 +0,0 @@
1
- #import <React/RCTConvert.h>
2
- #import "RNCSafeAreaViewEdges.h"
3
-
4
- @implementation RCTConvert (RNCSafeAreaView)
5
-
6
- RCT_MULTI_ENUM_CONVERTER(RNCSafeAreaViewEdges, (@{
7
- @"top": @(RNCSafeAreaViewEdgesTop),
8
- @"right": @(RNCSafeAreaViewEdgesRight),
9
- @"bottom": @(RNCSafeAreaViewEdgesBottom),
10
- @"left": @(RNCSafeAreaViewEdgesLeft),
11
- }), RNCSafeAreaViewEdgesAll, integerValue);
12
-
13
- @end
@@ -1,18 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
-
3
- #import "RNCSafeAreaViewMode.h"
4
- #import "RNCSafeAreaViewEdges.h"
5
-
6
- NS_ASSUME_NONNULL_BEGIN
7
-
8
- @interface RNCSafeAreaViewLocalData : NSObject
9
-
10
- - (instancetype)initWithInsets:(UIEdgeInsets)insets mode:(RNCSafeAreaViewMode)mode edges:(RNCSafeAreaViewEdges)edges;
11
-
12
- @property (atomic, readonly) UIEdgeInsets insets;
13
- @property (atomic, readonly) RNCSafeAreaViewMode mode;
14
- @property (atomic, readonly) RNCSafeAreaViewEdges edges;
15
-
16
- @end
17
-
18
- NS_ASSUME_NONNULL_END
@@ -1,16 +0,0 @@
1
- #import "RNCSafeAreaViewLocalData.h"
2
-
3
- @implementation RNCSafeAreaViewLocalData
4
-
5
- - (instancetype)initWithInsets:(UIEdgeInsets)insets mode:(RNCSafeAreaViewMode)mode edges:(RNCSafeAreaViewEdges)edges
6
- {
7
- if (self = [super init]) {
8
- _insets = insets;
9
- _mode = mode;
10
- _edges = edges;
11
- }
12
-
13
- return self;
14
- }
15
-
16
- @end
@@ -1,9 +0,0 @@
1
- #import <React/RCTViewManager.h>
2
-
3
- NS_ASSUME_NONNULL_BEGIN
4
-
5
- @interface RNCSafeAreaViewManager : RCTViewManager
6
-
7
- @end
8
-
9
- NS_ASSUME_NONNULL_END
@@ -1,25 +0,0 @@
1
- #import "RNCSafeAreaViewManager.h"
2
-
3
- #import "RNCSafeAreaShadowView.h"
4
- #import "RNCSafeAreaView.h"
5
- #import "RNCSafeAreaViewMode.h"
6
- #import "RNCSafeAreaViewEdges.h"
7
-
8
- @implementation RNCSafeAreaViewManager
9
-
10
- RCT_EXPORT_MODULE(RNCSafeAreaView)
11
-
12
- - (UIView *)view
13
- {
14
- return [[RNCSafeAreaView alloc] initWithBridge:self.bridge];
15
- }
16
-
17
- - (RNCSafeAreaShadowView *)shadowView
18
- {
19
- return [RNCSafeAreaShadowView new];
20
- }
21
-
22
- RCT_EXPORT_VIEW_PROPERTY(mode, RNCSafeAreaViewMode)
23
- RCT_EXPORT_VIEW_PROPERTY(edges, RNCSafeAreaViewEdges)
24
-
25
- @end
@@ -1,7 +0,0 @@
1
- #import <Foundation/Foundation.h>
2
-
3
- typedef NS_ENUM(NSInteger, RNCSafeAreaViewMode) {
4
- RNCSafeAreaViewModePadding,
5
- RNCSafeAreaViewModeMargin,
6
- RNCSafeAreaViewModeBorder,
7
- };
@@ -1,11 +0,0 @@
1
- #import <React/RCTConvert.h>
2
- #import "RNCSafeAreaViewMode.h"
3
-
4
- @implementation RCTConvert (RNCSafeAreaView)
5
-
6
- RCT_MULTI_ENUM_CONVERTER(RNCSafeAreaViewMode, (@{
7
- @"padding": @(RNCSafeAreaViewModePadding),
8
- @"margin": @(RNCSafeAreaViewModeMargin),
9
- }), RNCSafeAreaViewModePadding, integerValue);
10
-
11
- @end
@@ -1,338 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXBuildFile section */
10
- 19AC186D23048EBB0093B581 /* RNCSafeAreaView.m in Sources */ = {isa = PBXBuildFile; fileRef = 19AC186C23048EBB0093B581 /* RNCSafeAreaView.m */; };
11
- 2EF2DACC23198DA400BBA425 /* RNCSafeAreaViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2EF2DACB23198DA400BBA425 /* RNCSafeAreaViewManager.m */; };
12
- 456B6CDC25B3B45F002C1C0C /* RNCSafeAreaProviderManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 456B6CCF25B3B45F002C1C0C /* RNCSafeAreaProviderManager.m */; };
13
- 456B6CDD25B3B45F002C1C0C /* RNCSafeAreaShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 456B6CD225B3B45F002C1C0C /* RNCSafeAreaShadowView.m */; };
14
- 456B6CDE25B3B45F002C1C0C /* RNCSafeAreaViewEdges.m in Sources */ = {isa = PBXBuildFile; fileRef = 456B6CD325B3B45F002C1C0C /* RNCSafeAreaViewEdges.m */; };
15
- 456B6CDF25B3B45F002C1C0C /* RCTView+SafeAreaCompat.m in Sources */ = {isa = PBXBuildFile; fileRef = 456B6CD525B3B45F002C1C0C /* RCTView+SafeAreaCompat.m */; };
16
- 456B6CE025B3B45F002C1C0C /* RNCSafeAreaViewMode.m in Sources */ = {isa = PBXBuildFile; fileRef = 456B6CD825B3B45F002C1C0C /* RNCSafeAreaViewMode.m */; };
17
- 456B6CE125B3B45F002C1C0C /* RNCSafeAreaViewLocalData.m in Sources */ = {isa = PBXBuildFile; fileRef = 456B6CDA25B3B45F002C1C0C /* RNCSafeAreaViewLocalData.m */; };
18
- 456B6CE225B3B45F002C1C0C /* RNCSafeAreaProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 456B6CDB25B3B45F002C1C0C /* RNCSafeAreaProvider.m */; };
19
- C923EDBC220C2C1A00D3100F /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C923EDBB220C2C1A00D3100F /* SystemConfiguration.framework */; };
20
- /* End PBXBuildFile section */
21
-
22
- /* Begin PBXCopyFilesBuildPhase section */
23
- 58B511D91A9E6C8500147676 /* CopyFiles */ = {
24
- isa = PBXCopyFilesBuildPhase;
25
- buildActionMask = 2147483647;
26
- dstPath = "include/$(PRODUCT_NAME)";
27
- dstSubfolderSpec = 16;
28
- files = (
29
- );
30
- runOnlyForDeploymentPostprocessing = 0;
31
- };
32
- /* End PBXCopyFilesBuildPhase section */
33
-
34
- /* Begin PBXFileReference section */
35
- 134814201AA4EA6300B7C361 /* libRNCSafeAreaContext.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNCSafeAreaContext.a; sourceTree = BUILT_PRODUCTS_DIR; };
36
- 19AC186B23048EBB0093B581 /* RNCSafeAreaView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RNCSafeAreaView.h; path = SafeAreaView/RNCSafeAreaView.h; sourceTree = "<group>"; };
37
- 19AC186C23048EBB0093B581 /* RNCSafeAreaView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RNCSafeAreaView.m; path = SafeAreaView/RNCSafeAreaView.m; sourceTree = "<group>"; };
38
- 2EF2DACA23198DA300BBA425 /* RNCSafeAreaViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNCSafeAreaViewManager.h; path = SafeAreaView/RNCSafeAreaViewManager.h; sourceTree = "<group>"; };
39
- 2EF2DACB23198DA400BBA425 /* RNCSafeAreaViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNCSafeAreaViewManager.m; path = SafeAreaView/RNCSafeAreaViewManager.m; sourceTree = "<group>"; };
40
- 456B6CCE25B3B45F002C1C0C /* RNCSafeAreaShadowView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNCSafeAreaShadowView.h; path = SafeAreaView/RNCSafeAreaShadowView.h; sourceTree = "<group>"; };
41
- 456B6CCF25B3B45F002C1C0C /* RNCSafeAreaProviderManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNCSafeAreaProviderManager.m; path = SafeAreaView/RNCSafeAreaProviderManager.m; sourceTree = "<group>"; };
42
- 456B6CD025B3B45F002C1C0C /* RNCSafeAreaProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNCSafeAreaProvider.h; path = SafeAreaView/RNCSafeAreaProvider.h; sourceTree = "<group>"; };
43
- 456B6CD125B3B45F002C1C0C /* RNCSafeAreaViewLocalData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNCSafeAreaViewLocalData.h; path = SafeAreaView/RNCSafeAreaViewLocalData.h; sourceTree = "<group>"; };
44
- 456B6CD225B3B45F002C1C0C /* RNCSafeAreaShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNCSafeAreaShadowView.m; path = SafeAreaView/RNCSafeAreaShadowView.m; sourceTree = "<group>"; };
45
- 456B6CD325B3B45F002C1C0C /* RNCSafeAreaViewEdges.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNCSafeAreaViewEdges.m; path = SafeAreaView/RNCSafeAreaViewEdges.m; sourceTree = "<group>"; };
46
- 456B6CD425B3B45F002C1C0C /* RNCSafeAreaViewEdges.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNCSafeAreaViewEdges.h; path = SafeAreaView/RNCSafeAreaViewEdges.h; sourceTree = "<group>"; };
47
- 456B6CD525B3B45F002C1C0C /* RCTView+SafeAreaCompat.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "RCTView+SafeAreaCompat.m"; path = "SafeAreaView/RCTView+SafeAreaCompat.m"; sourceTree = "<group>"; };
48
- 456B6CD625B3B45F002C1C0C /* RNCSafeAreaViewMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNCSafeAreaViewMode.h; path = SafeAreaView/RNCSafeAreaViewMode.h; sourceTree = "<group>"; };
49
- 456B6CD725B3B45F002C1C0C /* RNCSafeAreaProviderManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNCSafeAreaProviderManager.h; path = SafeAreaView/RNCSafeAreaProviderManager.h; sourceTree = "<group>"; };
50
- 456B6CD825B3B45F002C1C0C /* RNCSafeAreaViewMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNCSafeAreaViewMode.m; path = SafeAreaView/RNCSafeAreaViewMode.m; sourceTree = "<group>"; };
51
- 456B6CD925B3B45F002C1C0C /* RCTView+SafeAreaCompat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "RCTView+SafeAreaCompat.h"; path = "SafeAreaView/RCTView+SafeAreaCompat.h"; sourceTree = "<group>"; };
52
- 456B6CDA25B3B45F002C1C0C /* RNCSafeAreaViewLocalData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNCSafeAreaViewLocalData.m; path = SafeAreaView/RNCSafeAreaViewLocalData.m; sourceTree = "<group>"; };
53
- 456B6CDB25B3B45F002C1C0C /* RNCSafeAreaProvider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNCSafeAreaProvider.m; path = SafeAreaView/RNCSafeAreaProvider.m; sourceTree = "<group>"; };
54
- C923EDBB220C2C1A00D3100F /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
55
- /* End PBXFileReference section */
56
-
57
- /* Begin PBXFrameworksBuildPhase section */
58
- 58B511D81A9E6C8500147676 /* Frameworks */ = {
59
- isa = PBXFrameworksBuildPhase;
60
- buildActionMask = 2147483647;
61
- files = (
62
- C923EDBC220C2C1A00D3100F /* SystemConfiguration.framework in Frameworks */,
63
- );
64
- runOnlyForDeploymentPostprocessing = 0;
65
- };
66
- /* End PBXFrameworksBuildPhase section */
67
-
68
- /* Begin PBXGroup section */
69
- 134814211AA4EA7D00B7C361 /* Products */ = {
70
- isa = PBXGroup;
71
- children = (
72
- 134814201AA4EA6300B7C361 /* libRNCSafeAreaContext.a */,
73
- );
74
- name = Products;
75
- sourceTree = "<group>";
76
- };
77
- 58B511D21A9E6C8500147676 = {
78
- isa = PBXGroup;
79
- children = (
80
- 456B6CD925B3B45F002C1C0C /* RCTView+SafeAreaCompat.h */,
81
- 456B6CD525B3B45F002C1C0C /* RCTView+SafeAreaCompat.m */,
82
- 456B6CD025B3B45F002C1C0C /* RNCSafeAreaProvider.h */,
83
- 456B6CDB25B3B45F002C1C0C /* RNCSafeAreaProvider.m */,
84
- 456B6CD725B3B45F002C1C0C /* RNCSafeAreaProviderManager.h */,
85
- 456B6CCF25B3B45F002C1C0C /* RNCSafeAreaProviderManager.m */,
86
- 456B6CCE25B3B45F002C1C0C /* RNCSafeAreaShadowView.h */,
87
- 456B6CD225B3B45F002C1C0C /* RNCSafeAreaShadowView.m */,
88
- 456B6CD425B3B45F002C1C0C /* RNCSafeAreaViewEdges.h */,
89
- 456B6CD325B3B45F002C1C0C /* RNCSafeAreaViewEdges.m */,
90
- 456B6CD125B3B45F002C1C0C /* RNCSafeAreaViewLocalData.h */,
91
- 456B6CDA25B3B45F002C1C0C /* RNCSafeAreaViewLocalData.m */,
92
- 456B6CD625B3B45F002C1C0C /* RNCSafeAreaViewMode.h */,
93
- 456B6CD825B3B45F002C1C0C /* RNCSafeAreaViewMode.m */,
94
- 2EF2DACA23198DA300BBA425 /* RNCSafeAreaViewManager.h */,
95
- 2EF2DACB23198DA400BBA425 /* RNCSafeAreaViewManager.m */,
96
- 19AC186B23048EBB0093B581 /* RNCSafeAreaView.h */,
97
- 19AC186C23048EBB0093B581 /* RNCSafeAreaView.m */,
98
- 134814211AA4EA7D00B7C361 /* Products */,
99
- C923EDBA220C2C1A00D3100F /* Frameworks */,
100
- );
101
- sourceTree = "<group>";
102
- };
103
- C923EDBA220C2C1A00D3100F /* Frameworks */ = {
104
- isa = PBXGroup;
105
- children = (
106
- C923EDBB220C2C1A00D3100F /* SystemConfiguration.framework */,
107
- );
108
- name = Frameworks;
109
- sourceTree = "<group>";
110
- };
111
- /* End PBXGroup section */
112
-
113
- /* Begin PBXNativeTarget section */
114
- 58B511DA1A9E6C8500147676 /* RNCSafeAreaContext */ = {
115
- isa = PBXNativeTarget;
116
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNCSafeAreaContext" */;
117
- buildPhases = (
118
- 58B511D71A9E6C8500147676 /* Sources */,
119
- 58B511D81A9E6C8500147676 /* Frameworks */,
120
- 58B511D91A9E6C8500147676 /* CopyFiles */,
121
- );
122
- buildRules = (
123
- );
124
- dependencies = (
125
- );
126
- name = RNCSafeAreaContext;
127
- productName = RCTDataManager;
128
- productReference = 134814201AA4EA6300B7C361 /* libRNCSafeAreaContext.a */;
129
- productType = "com.apple.product-type.library.static";
130
- };
131
- /* End PBXNativeTarget section */
132
-
133
- /* Begin PBXProject section */
134
- 58B511D31A9E6C8500147676 /* Project object */ = {
135
- isa = PBXProject;
136
- attributes = {
137
- LastUpgradeCheck = 1030;
138
- ORGANIZATIONNAME = Facebook;
139
- TargetAttributes = {
140
- 58B511DA1A9E6C8500147676 = {
141
- CreatedOnToolsVersion = 6.1.1;
142
- };
143
- };
144
- };
145
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "SafeAreaView" */;
146
- compatibilityVersion = "Xcode 3.2";
147
- developmentRegion = en;
148
- hasScannedForEncodings = 0;
149
- knownRegions = (
150
- en,
151
- Base,
152
- );
153
- mainGroup = 58B511D21A9E6C8500147676;
154
- productRefGroup = 58B511D21A9E6C8500147676;
155
- projectDirPath = "";
156
- projectRoot = "";
157
- targets = (
158
- 58B511DA1A9E6C8500147676 /* RNCSafeAreaContext */,
159
- );
160
- };
161
- /* End PBXProject section */
162
-
163
- /* Begin PBXSourcesBuildPhase section */
164
- 58B511D71A9E6C8500147676 /* Sources */ = {
165
- isa = PBXSourcesBuildPhase;
166
- buildActionMask = 2147483647;
167
- files = (
168
- 456B6CE125B3B45F002C1C0C /* RNCSafeAreaViewLocalData.m in Sources */,
169
- 456B6CDF25B3B45F002C1C0C /* RCTView+SafeAreaCompat.m in Sources */,
170
- 456B6CDE25B3B45F002C1C0C /* RNCSafeAreaViewEdges.m in Sources */,
171
- 456B6CDC25B3B45F002C1C0C /* RNCSafeAreaProviderManager.m in Sources */,
172
- 456B6CE025B3B45F002C1C0C /* RNCSafeAreaViewMode.m in Sources */,
173
- 2EF2DACC23198DA400BBA425 /* RNCSafeAreaViewManager.m in Sources */,
174
- 456B6CDD25B3B45F002C1C0C /* RNCSafeAreaShadowView.m in Sources */,
175
- 19AC186D23048EBB0093B581 /* RNCSafeAreaView.m in Sources */,
176
- 456B6CE225B3B45F002C1C0C /* RNCSafeAreaProvider.m in Sources */,
177
- );
178
- runOnlyForDeploymentPostprocessing = 0;
179
- };
180
- /* End PBXSourcesBuildPhase section */
181
-
182
- /* Begin XCBuildConfiguration section */
183
- 58B511ED1A9E6C8500147676 /* Debug */ = {
184
- isa = XCBuildConfiguration;
185
- buildSettings = {
186
- ALWAYS_SEARCH_USER_PATHS = NO;
187
- CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
188
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
189
- CLANG_CXX_LIBRARY = "libc++";
190
- CLANG_ENABLE_MODULES = YES;
191
- CLANG_ENABLE_OBJC_ARC = YES;
192
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
193
- CLANG_WARN_BOOL_CONVERSION = YES;
194
- CLANG_WARN_COMMA = YES;
195
- CLANG_WARN_CONSTANT_CONVERSION = YES;
196
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
197
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
198
- CLANG_WARN_EMPTY_BODY = YES;
199
- CLANG_WARN_ENUM_CONVERSION = YES;
200
- CLANG_WARN_INFINITE_RECURSION = YES;
201
- CLANG_WARN_INT_CONVERSION = YES;
202
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
203
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
204
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
205
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
206
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
207
- CLANG_WARN_STRICT_PROTOTYPES = YES;
208
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
209
- CLANG_WARN_UNREACHABLE_CODE = YES;
210
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
211
- COPY_PHASE_STRIP = NO;
212
- ENABLE_STRICT_OBJC_MSGSEND = YES;
213
- ENABLE_TESTABILITY = YES;
214
- GCC_C_LANGUAGE_STANDARD = gnu99;
215
- GCC_DYNAMIC_NO_PIC = NO;
216
- GCC_NO_COMMON_BLOCKS = YES;
217
- GCC_OPTIMIZATION_LEVEL = 0;
218
- GCC_PREPROCESSOR_DEFINITIONS = (
219
- "DEBUG=1",
220
- "$(inherited)",
221
- );
222
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
223
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
224
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
225
- GCC_WARN_UNDECLARED_SELECTOR = YES;
226
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
227
- GCC_WARN_UNUSED_FUNCTION = YES;
228
- GCC_WARN_UNUSED_VARIABLE = YES;
229
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
230
- MTL_ENABLE_DEBUG_INFO = YES;
231
- ONLY_ACTIVE_ARCH = YES;
232
- SDKROOT = iphoneos;
233
- };
234
- name = Debug;
235
- };
236
- 58B511EE1A9E6C8500147676 /* Release */ = {
237
- isa = XCBuildConfiguration;
238
- buildSettings = {
239
- ALWAYS_SEARCH_USER_PATHS = NO;
240
- CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
241
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
242
- CLANG_CXX_LIBRARY = "libc++";
243
- CLANG_ENABLE_MODULES = YES;
244
- CLANG_ENABLE_OBJC_ARC = YES;
245
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
246
- CLANG_WARN_BOOL_CONVERSION = YES;
247
- CLANG_WARN_COMMA = YES;
248
- CLANG_WARN_CONSTANT_CONVERSION = YES;
249
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
250
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
251
- CLANG_WARN_EMPTY_BODY = YES;
252
- CLANG_WARN_ENUM_CONVERSION = YES;
253
- CLANG_WARN_INFINITE_RECURSION = YES;
254
- CLANG_WARN_INT_CONVERSION = YES;
255
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
256
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
257
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
258
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
259
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
260
- CLANG_WARN_STRICT_PROTOTYPES = YES;
261
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
262
- CLANG_WARN_UNREACHABLE_CODE = YES;
263
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
264
- COPY_PHASE_STRIP = YES;
265
- ENABLE_NS_ASSERTIONS = NO;
266
- ENABLE_STRICT_OBJC_MSGSEND = YES;
267
- GCC_C_LANGUAGE_STANDARD = gnu99;
268
- GCC_NO_COMMON_BLOCKS = YES;
269
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271
- GCC_WARN_UNDECLARED_SELECTOR = YES;
272
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273
- GCC_WARN_UNUSED_FUNCTION = YES;
274
- GCC_WARN_UNUSED_VARIABLE = YES;
275
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276
- MTL_ENABLE_DEBUG_INFO = NO;
277
- SDKROOT = iphoneos;
278
- VALIDATE_PRODUCT = YES;
279
- };
280
- name = Release;
281
- };
282
- 58B511F01A9E6C8500147676 /* Debug */ = {
283
- isa = XCBuildConfiguration;
284
- buildSettings = {
285
- HEADER_SEARCH_PATHS = (
286
- "$(inherited)",
287
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
288
- "$(SRCROOT)/../../../React/**",
289
- "$(SRCROOT)/../../react-native/React/**",
290
- );
291
- LIBRARY_SEARCH_PATHS = "$(inherited)";
292
- OTHER_LDFLAGS = "-ObjC";
293
- PRODUCT_NAME = RNCSafeAreaContext;
294
- SKIP_INSTALL = YES;
295
- };
296
- name = Debug;
297
- };
298
- 58B511F11A9E6C8500147676 /* Release */ = {
299
- isa = XCBuildConfiguration;
300
- buildSettings = {
301
- HEADER_SEARCH_PATHS = (
302
- "$(inherited)",
303
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
304
- "$(SRCROOT)/../../../React/**",
305
- "$(SRCROOT)/../../react-native/React/**",
306
- );
307
- LIBRARY_SEARCH_PATHS = "$(inherited)";
308
- OTHER_LDFLAGS = "-ObjC";
309
- PRODUCT_NAME = RNCSafeAreaContext;
310
- SKIP_INSTALL = YES;
311
- };
312
- name = Release;
313
- };
314
- /* End XCBuildConfiguration section */
315
-
316
- /* Begin XCConfigurationList section */
317
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "SafeAreaView" */ = {
318
- isa = XCConfigurationList;
319
- buildConfigurations = (
320
- 58B511ED1A9E6C8500147676 /* Debug */,
321
- 58B511EE1A9E6C8500147676 /* Release */,
322
- );
323
- defaultConfigurationIsVisible = 0;
324
- defaultConfigurationName = Release;
325
- };
326
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNCSafeAreaContext" */ = {
327
- isa = XCConfigurationList;
328
- buildConfigurations = (
329
- 58B511F01A9E6C8500147676 /* Debug */,
330
- 58B511F11A9E6C8500147676 /* Release */,
331
- );
332
- defaultConfigurationIsVisible = 0;
333
- defaultConfigurationName = Release;
334
- };
335
- /* End XCConfigurationList section */
336
- };
337
- rootObject = 58B511D31A9E6C8500147676 /* Project object */;
338
- }
@@ -1,2 +0,0 @@
1
- import { NativeSafeAreaProviderProps } from './SafeArea.types';
2
- export declare function CompatNativeSafeAreaProvider({ children, style, onInsetsChange, }: NativeSafeAreaProviderProps): JSX.Element;
@@ -1,2 +0,0 @@
1
- import { NativeSafeAreaProviderProps } from './SafeArea.types';
2
- export default function NativeSafeAreaView({ children, style, onInsetsChange, }: NativeSafeAreaProviderProps): JSX.Element;
@@ -1,2 +0,0 @@
1
- import { NativeSafeAreaViewProps } from './SafeArea.types';
2
- export declare function SafeAreaView({ style, mode, edges, ...rest }: NativeSafeAreaViewProps): JSX.Element;
@@ -1,19 +0,0 @@
1
- require 'json'
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = "@amazon-devices/react-native-safe-area-context"
7
- s.version = package['version']
8
- s.summary = package['description']
9
- s.license = package['license']
10
-
11
- s.authors = package['author']
12
- s.homepage = package['homepage']
13
- s.platforms = { :ios => "9.0", :tvos => "9.2" }
14
-
15
- s.source = { :git => "https://github.com/th3rdwave/react-native-safe-area-context.git", :tag => "v#{s.version}" }
16
- s.source_files = "ios/**/*.{h,m}"
17
-
18
- s.dependency 'React-Core'
19
- end