react-native-macos 0.71.12 → 0.71.14

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 (33) hide show
  1. package/Libraries/AppDelegate/RCTAppDelegate.mm +10 -2
  2. package/Libraries/Components/Pressable/Pressable.js +59 -3
  3. package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
  4. package/Libraries/Components/View/ViewPropTypes.d.ts +1 -0
  5. package/Libraries/Components/View/ViewPropTypes.js +13 -4
  6. package/Libraries/Core/ReactNativeVersion.js +1 -1
  7. package/Libraries/NativeComponent/BaseViewConfig.macos.js +1 -0
  8. package/React/Base/RCTUIKit.h +3 -0
  9. package/React/Base/RCTVersion.m +1 -1
  10. package/React/Base/macOS/RCTUIKit.m +10 -0
  11. package/React/Views/RCTView.m +11 -0
  12. package/React/Views/RCTViewManager.m +5 -0
  13. package/ReactAndroid/gradle.properties +1 -1
  14. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  15. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  16. package/local-cli/generator-macos/index.js +0 -3
  17. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/AppDelegate.h +2 -5
  18. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/AppDelegate.mm +40 -0
  19. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/Base.lproj/Main.storyboard +5 -38
  20. package/local-cli/generator-macos/templates/macos/HelloWorld.xcodeproj/project.pbxproj +4 -80
  21. package/local-cli/generator-macos/templates/macos/Podfile +12 -17
  22. package/package.json +1 -1
  23. package/template/package.json +1 -1
  24. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/AppDelegate.h +0 -8
  25. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/AppDelegate.m +0 -35
  26. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/Base.lproj/LaunchScreen.xib +0 -42
  27. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  28. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/Images.xcassets/Contents.json +0 -6
  29. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/Info.plist +0 -57
  30. package/local-cli/generator-macos/templates/macos/HelloWorld-iOS/main.m +0 -9
  31. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/AppDelegate.m +0 -32
  32. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/ViewController.h +0 -5
  33. package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/ViewController.m +0 -22
@@ -79,11 +79,19 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
79
79
  [self.window makeKeyAndVisible];
80
80
  return YES;
81
81
  #else // [macOS
82
- self.window = [[NSWindow alloc] init];
83
- NSViewController *rootViewController = [self createRootViewController];
82
+ NSRect frame = NSMakeRect(0,0,1024,768);
83
+ self.window = [[NSWindow alloc] initWithContentRect:NSZeroRect
84
+ styleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskResizable | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable
85
+ backing:NSBackingStoreBuffered
86
+ defer:NO];
87
+ self.window.title = self.moduleName;
88
+ self.window.autorecalculatesKeyViewLoop = YES;
89
+ NSViewController *rootViewController = [NSViewController new];
84
90
  rootViewController.view = rootView;
91
+ rootView.frame = frame;
85
92
  self.window.contentViewController = rootViewController;
86
93
  [self.window makeKeyAndOrderFront:self];
94
+ [self.window center];
87
95
  #endif // macOS]
88
96
  }
89
97
 
@@ -196,12 +196,66 @@ type Props = $ReadOnly<{|
196
196
  */
197
197
  validKeysUp?: ?Array<string>,
198
198
 
199
+ /**
200
+ * Specifies whether the view should receive the mouse down event when the
201
+ * containing window is in the background.
202
+ *
203
+ * @platform macos
204
+ */
199
205
  acceptsFirstMouse?: ?boolean,
206
+
207
+ /**
208
+ * Specifies whether clicking and dragging the view can move the window. This is useful
209
+ * to disable in Button like components like Pressable where mouse the user should still
210
+ * be able to click and drag off the view to cancel the click without accidentally moving the window.
211
+ *
212
+ * @platform macos
213
+ */
214
+ mouseDownCanMoveWindow?: ?boolean,
215
+
216
+ /**
217
+ * Specifies whether system focus ring should be drawn when the view has keyboard focus.
218
+ *
219
+ * @platform macos
220
+ */
200
221
  enableFocusRing?: ?boolean,
222
+
223
+ /**
224
+ * Specifies the Tooltip for the Pressable.
225
+ * @platform macos
226
+ */
201
227
  tooltip?: ?string,
228
+
229
+ /**
230
+ * Fired when a file is dragged into the Pressable via the mouse.
231
+ *
232
+ * @platform macos
233
+ */
202
234
  onDragEnter?: (event: MouseEvent) => void,
235
+
236
+ /**
237
+ * Fired when a file is dragged out of the Pressable via the mouse.
238
+ *
239
+ * @platform macos
240
+ */
203
241
  onDragLeave?: (event: MouseEvent) => void,
242
+
243
+ /**
244
+ * Fired when a file is dropped on the Pressable via the mouse.
245
+ *
246
+ * @platform macos
247
+ */
204
248
  onDrop?: (event: MouseEvent) => void,
249
+
250
+ /**
251
+ * The types of dragged files that the Pressable will accept.
252
+ *
253
+ * Possible values for `draggedTypes` are:
254
+ *
255
+ * - `'fileUrl'`
256
+ *
257
+ * @platform macos
258
+ */
205
259
  draggedTypes?: ?DraggedTypesType,
206
260
  // macOS]
207
261
 
@@ -250,8 +304,6 @@ type Props = $ReadOnly<{|
250
304
  * LTI update could not be added via codemod */
251
305
  function Pressable(props: Props, forwardedRef): React.Node {
252
306
  const {
253
- acceptsFirstMouse, // [macOS]
254
- enableFocusRing, // [macOS]
255
307
  accessible,
256
308
  accessibilityState,
257
309
  'aria-live': ariaLive,
@@ -282,6 +334,9 @@ function Pressable(props: Props, forwardedRef): React.Node {
282
334
  onBlur,
283
335
  onKeyDown,
284
336
  onKeyUp,
337
+ acceptsFirstMouse,
338
+ mouseDownCanMoveWindow,
339
+ enableFocusRing,
285
340
  // macOS]
286
341
  pressRetentionOffset,
287
342
  style,
@@ -322,7 +377,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
322
377
  const restPropsWithDefaults: React.ElementConfig<typeof View> = {
323
378
  ...restProps,
324
379
  ...android_rippleConfig?.viewProps,
325
- acceptsFirstMouse: acceptsFirstMouse !== false && !disabled, // [macOS
380
+ acceptsFirstMouse: acceptsFirstMouse !== false && !disabled, // [macOS]
381
+ mouseDownCanMoveWindow: false, // [macOS]
326
382
  enableFocusRing: enableFocusRing !== false && !disabled,
327
383
  accessible: accessible !== false,
328
384
  accessibilityViewIsModal:
@@ -37,6 +37,7 @@ const UIView = {
37
37
  style: ReactNativeStyleAttributes,
38
38
  // [macOS
39
39
  acceptsFirstMouse: true,
40
+ mouseDownCanMoveWindow: true,
40
41
  enableFocusRing: true,
41
42
  focusable: true,
42
43
  onMouseEnter: true,
@@ -173,6 +173,7 @@ export type DraggedTypesType = DraggedType | DraggedType[];
173
173
 
174
174
  export interface ViewPropsMacOS {
175
175
  acceptsFirstMouse?: boolean | undefined;
176
+ mouseDownCanMoveWindow?: boolean | undefined;
176
177
  enableFocusRing?: boolean | undefined;
177
178
  onMouseEnter?: ((event: MouseEvent) => void) | undefined;
178
179
  onMouseLeave?: ((event: MouseEvent) => void) | undefined;
@@ -474,14 +474,14 @@ type IOSViewProps = $ReadOnly<{|
474
474
  // [macOS
475
475
  type MacOSViewProps = $ReadOnly<{|
476
476
  /**
477
- * Fired when a dragged element enters a valid drop target
477
+ * Fired when a file is dragged into the view via the mouse.
478
478
  *
479
479
  * @platform macos
480
480
  */
481
481
  onDragEnter?: (event: MouseEvent) => void,
482
482
 
483
483
  /**
484
- * Fired when a dragged element leaves a valid drop target
484
+ * Fired when a file is dragged out of the view via the mouse.
485
485
  *
486
486
  * @platform macos
487
487
  */
@@ -509,14 +509,23 @@ type MacOSViewProps = $ReadOnly<{|
509
509
  acceptsFirstMouse?: ?boolean,
510
510
 
511
511
  /**
512
- * Specifies whether focus ring should be drawn when the view has the first responder status.
512
+ * Specifies whether clicking and dragging the view can move the window. This is useful
513
+ * to disable in Button like components like Pressable where mouse the user should still
514
+ * be able to click and drag off the view to cancel the click without accidentally moving the window.
515
+ *
516
+ * @platform macos
517
+ */
518
+ mouseDownCanMoveWindow?: ?boolean,
519
+
520
+ /**
521
+ * Specifies whether system focus ring should be drawn when the view has keyboard focus.
513
522
  *
514
523
  * @platform macos
515
524
  */
516
525
  enableFocusRing?: ?boolean,
517
526
 
518
527
  /**
519
- * Enables Drag'n'Drop Support for certain types of dragged types
528
+ * The types of dragged files that the view will accept.
520
529
  *
521
530
  * Possible values for `draggedTypes` are:
522
531
  *
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 71,
15
- patch: 12,
15
+ patch: 14,
16
16
  prerelease: null,
17
17
  };
@@ -54,6 +54,7 @@ const validAttributesForNonEventProps = {
54
54
  tooltip: true,
55
55
  validKeysDown: true,
56
56
  validKeysUp: true,
57
+ mouseDownCanMoveWindow: true,
57
58
  };
58
59
 
59
60
  // Props for bubbling and direct events
@@ -405,6 +405,9 @@ CGPathRef UIBezierPathCreateCGPathRef(UIBezierPath *path);
405
405
  * containing window is in the background.
406
406
  */
407
407
  @property (nonatomic, assign) BOOL acceptsFirstMouse;
408
+
409
+ @property (nonatomic, assign) BOOL mouseDownCanMoveWindow;
410
+
408
411
  /**
409
412
  * Specifies whether the view participates in the key view loop as user tabs through different controls
410
413
  * This is equivalent to acceptsFirstResponder on mac OS.
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(71),
26
- RCTVersionPatch: @(12),
26
+ RCTVersionPatch: @(14),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -215,6 +215,7 @@ CGPathRef UIBezierPathCreateCGPathRef(UIBezierPath *bezierPath)
215
215
  NSColor *_backgroundColor;
216
216
  BOOL _clipsToBounds;
217
217
  BOOL _userInteractionEnabled;
218
+ BOOL _mouseDownCanMoveWindow;
218
219
  }
219
220
 
220
221
  + (NSSet<NSString *> *)keyPathsForValuesAffectingValueForKey:(NSString *)key
@@ -243,6 +244,7 @@ static RCTUIView *RCTUIViewCommonInit(RCTUIView *self)
243
244
  self.wantsLayer = YES;
244
245
  self->_userInteractionEnabled = YES;
245
246
  self->_enableFocusRing = YES;
247
+ self->_mouseDownCanMoveWindow = YES;
246
248
  }
247
249
  return self;
248
250
  }
@@ -288,6 +290,14 @@ static RCTUIView *RCTUIViewCommonInit(RCTUIView *self)
288
290
  [self didMoveToWindow];
289
291
  }
290
292
 
293
+ - (BOOL)mouseDownCanMoveWindow{
294
+ return _mouseDownCanMoveWindow;
295
+ }
296
+
297
+ - (void)setMouseDownCanMoveWindow:(BOOL)mouseDownCanMoveWindow{
298
+ _mouseDownCanMoveWindow = mouseDownCanMoveWindow;
299
+ }
300
+
291
301
  - (BOOL)isFlipped
292
302
  {
293
303
  return YES;
@@ -133,6 +133,7 @@ static NSString *RCTRecursiveAccessibilityLabel(RCTUIView *view) // [macOS]
133
133
  #if TARGET_OS_OSX // [macOS
134
134
  NSTrackingArea *_trackingArea;
135
135
  BOOL _hasMouseOver;
136
+ BOOL _mouseDownCanMoveWindow;
136
137
  #endif // macOS]
137
138
  NSMutableDictionary<NSString *, NSDictionary *> *accessibilityActionsNameMap;
138
139
  NSMutableDictionary<NSString *, NSDictionary *> *accessibilityActionsLabelMap;
@@ -172,6 +173,7 @@ static NSString *RCTRecursiveAccessibilityLabel(RCTUIView *view) // [macOS]
172
173
  #if TARGET_OS_OSX // [macOS
173
174
  _transform3D = CATransform3DIdentity;
174
175
  _shadowColor = nil;
176
+ _mouseDownCanMoveWindow = YES;
175
177
  #endif // macOS]
176
178
 
177
179
  _backgroundColor = super.backgroundColor;
@@ -1495,6 +1497,15 @@ setBorderColor() setBorderColor(Top) setBorderColor(Right) setBorderColor(Bottom
1495
1497
  additionalData:nil];
1496
1498
  }
1497
1499
 
1500
+ - (BOOL)mouseDownCanMoveWindow{
1501
+ return _mouseDownCanMoveWindow;
1502
+ }
1503
+
1504
+ - (void)setMouseDownCanMoveWindow:(BOOL)mouseDownCanMoveWindow{
1505
+ _mouseDownCanMoveWindow = mouseDownCanMoveWindow;
1506
+ }
1507
+
1508
+
1498
1509
  - (NSDictionary*)locationInfoFromEvent:(NSEvent*)event
1499
1510
  {
1500
1511
  NSPoint locationInWindow = event.locationInWindow;
@@ -417,12 +417,16 @@ RCT_CUSTOM_VIEW_PROPERTY(acceptsFirstMouse, BOOL, RCTView)
417
417
  view.acceptsFirstMouse = json ? [RCTConvert BOOL:json] : defaultView.acceptsFirstMouse;
418
418
  }
419
419
  }
420
+
421
+ RCT_EXPORT_VIEW_PROPERTY(mouseDownCanMoveWindow, BOOL)
422
+
420
423
  RCT_CUSTOM_VIEW_PROPERTY(focusable, BOOL, RCTView)
421
424
  {
422
425
  if ([view respondsToSelector:@selector(setFocusable:)]) {
423
426
  view.focusable = json ? [RCTConvert BOOL:json] : defaultView.focusable;
424
427
  }
425
428
  }
429
+
426
430
  RCT_CUSTOM_VIEW_PROPERTY(enableFocusRing, BOOL, RCTView)
427
431
  {
428
432
  if ([view respondsToSelector:@selector(setEnableFocusRing:)]) {
@@ -511,6 +515,7 @@ RCT_EXPORT_VIEW_PROPERTY(onKeyDown, RCTDirectEventBlock) // macOS keyboard event
511
515
  RCT_EXPORT_VIEW_PROPERTY(onKeyUp, RCTDirectEventBlock) // macOS keyboard events
512
516
  RCT_EXPORT_VIEW_PROPERTY(validKeysDown, NSArray<NSString*>)
513
517
  RCT_EXPORT_VIEW_PROPERTY(validKeysUp, NSArray<NSString*>)
518
+
514
519
  #endif // macOS]
515
520
 
516
521
  #pragma mark - ShadowView properties
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.71.12
1
+ VERSION_NAME=0.71.14
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 71,
20
- "patch", 12,
20
+ "patch", 14,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 71;
20
- int32_t Patch = 12;
20
+ int32_t Patch = 14;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
@@ -39,7 +39,6 @@ function copyProjectTemplateAndReplace(
39
39
  }
40
40
 
41
41
  createDir(path.join(destPath, macOSDir));
42
- createDir(path.join(destPath, srcDirPath(newProjectName, 'iOS')));
43
42
  createDir(path.join(destPath, srcDirPath(newProjectName, 'macOS')));
44
43
  createDir(path.join(destPath, xcodeprojPath(newProjectName)));
45
44
  createDir(path.join(destPath, schemesPath(newProjectName)));
@@ -51,10 +50,8 @@ function copyProjectTemplateAndReplace(
51
50
  [
52
51
  { from: path.join(srcRootPath, macOSDir, 'Podfile'), to: path.join(macOSDir, 'Podfile') },
53
52
  { from: path.join(srcRootPath, macOSDir, '_gitignore'), to: path.join(macOSDir, '.gitignore') },
54
- { from: path.join(srcRootPath, srcDirPath(oldProjectName, 'iOS')), to: srcDirPath(newProjectName, 'iOS') },
55
53
  { from: path.join(srcRootPath, srcDirPath(oldProjectName, 'macOS')), to: srcDirPath(newProjectName, 'macOS') },
56
54
  { from: path.join(srcRootPath, pbxprojPath(oldProjectName)), to: pbxprojPath(newProjectName) },
57
- { from: path.join(srcRootPath, schemePath(oldProjectName, 'iOS')), to: schemePath(newProjectName, 'iOS') },
58
55
  { from: path.join(srcRootPath, schemePath(oldProjectName, 'macOS')), to: schemePath(newProjectName, 'macOS') },
59
56
  ].forEach((mapping) => copyAndReplaceAll(mapping.from, destPath, mapping.to, templateVars, options.overwrite));
60
57
  }
@@ -1,9 +1,6 @@
1
+ #import <RCTAppDelegate.h>
1
2
  #import <Cocoa/Cocoa.h>
2
3
 
3
- @class RCTBridge;
4
-
5
- @interface AppDelegate : NSObject <NSApplicationDelegate>
6
-
7
- @property (nonatomic, readonly) RCTBridge *bridge;
4
+ @interface AppDelegate : RCTAppDelegate
8
5
 
9
6
  @end
@@ -0,0 +1,40 @@
1
+ #import "AppDelegate.h"
2
+
3
+ #import <React/RCTBundleURLProvider.h>
4
+
5
+ @implementation AppDelegate
6
+
7
+ - (void)applicationDidFinishLaunching:(NSNotification *)notification
8
+ {
9
+ self.moduleName = @"HelloWorld";
10
+ // You can add your custom initial props in the dictionary below.
11
+ // They will be passed down to the ViewController used by React Native.
12
+ self.initialProps = @{};
13
+
14
+ return [super applicationDidFinishLaunching:notification];
15
+ }
16
+
17
+ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
18
+ {
19
+ #if DEBUG
20
+ return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
21
+ #else
22
+ return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
23
+ #endif
24
+ }
25
+
26
+ /// This method controls whether the `concurrentRoot`feature of React18 is turned on or off.
27
+ ///
28
+ /// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
29
+ /// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
30
+ /// @return: `true` if the `concurrentRoot` feature is enabled. Otherwise, it returns `false`.
31
+ - (BOOL)concurrentRootEnabled
32
+ {
33
+ #ifdef RN_FABRIC_ENABLED
34
+ return true;
35
+ #else
36
+ return false;
37
+ #endif
38
+ }
39
+
40
+ @end
@@ -1,7 +1,8 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="11134" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="21701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
3
3
  <dependencies>
4
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11134"/>
4
+ <deployment identifier="macosx"/>
5
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21701"/>
5
6
  </dependencies>
6
7
  <scenes>
7
8
  <!--Application-->
@@ -673,45 +674,11 @@
673
674
  <outlet property="delegate" destination="Voe-Tx-rLC" id="PrD-fu-P6m"/>
674
675
  </connections>
675
676
  </application>
676
- <customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModuleProvider=""/>
677
+ <customObject id="Voe-Tx-rLC" customClass="AppDelegate"/>
677
678
  <customObject id="YLy-65-1bz" customClass="NSFontManager"/>
678
679
  <customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
679
680
  </objects>
680
681
  <point key="canvasLocation" x="75" y="0.0"/>
681
682
  </scene>
682
- <!--Window Controller-->
683
- <scene sceneID="R2V-B0-nI4">
684
- <objects>
685
- <windowController id="B8D-0N-5wS" sceneMemberID="viewController">
686
- <window key="window" title="HelloWorld" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="YES" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="IQv-IB-iLA">
687
- <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
688
- <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
689
- <rect key="contentRect" x="196" y="240" width="480" height="270"/>
690
- <rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
691
- <connections>
692
- <outlet property="delegate" destination="B8D-0N-5wS" id="98r-iN-zZc"/>
693
- </connections>
694
- </window>
695
- <connections>
696
- <segue destination="XfG-lQ-9wD" kind="relationship" relationship="window.shadowedContentViewController" id="cq2-FE-JQM"/>
697
- </connections>
698
- </windowController>
699
- <customObject id="Oky-zY-oP4" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
700
- </objects>
701
- <point key="canvasLocation" x="75" y="250"/>
702
- </scene>
703
- <!--View Controller-->
704
- <scene sceneID="hIz-AP-VOD">
705
- <objects>
706
- <viewController id="XfG-lQ-9wD" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
707
- <view key="view" id="m2S-Jp-Qdl">
708
- <rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
709
- <autoresizingMask key="autoresizingMask"/>
710
- </view>
711
- </viewController>
712
- <customObject id="rPt-NT-nkU" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
713
- </objects>
714
- <point key="canvasLocation" x="75" y="655"/>
715
- </scene>
716
683
  </scenes>
717
684
  </document>
@@ -7,47 +7,23 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- 0496A360A6F874C295C73D4B /* libPods-Shared-HelloWorld-macOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C8DBC48FD7C3AEF576C57B21 /* libPods-Shared-HelloWorld-macOS.a */; };
11
- 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
12
- 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
13
- 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
14
- 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
15
- 5142014D2437B4B30078DB4F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5142014C2437B4B30078DB4F /* AppDelegate.m */; };
16
- 514201502437B4B30078DB4F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5142014F2437B4B30078DB4F /* ViewController.m */; };
10
+ 5142014D2437B4B30078DB4F /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5142014C2437B4B30078DB4F /* AppDelegate.mm */; };
17
11
  514201522437B4B40078DB4F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 514201512437B4B40078DB4F /* Assets.xcassets */; };
18
12
  514201552437B4B40078DB4F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 514201532437B4B40078DB4F /* Main.storyboard */; };
19
13
  514201582437B4B40078DB4F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 514201572437B4B40078DB4F /* main.m */; };
20
- B5C72D9C27A1E1D711C050EF /* libPods-Shared-HelloWorld-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FB6EED1BDEABADF047CC5223 /* libPods-Shared-HelloWorld-iOS.a */; };
21
14
  /* End PBXBuildFile section */
22
15
 
23
16
  /* Begin PBXFileReference section */
24
- 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
25
- 02422F9FB6FF5F34B4E63E6F /* Pods-Shared-HelloWorld-macOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-HelloWorld-macOS.debug.xcconfig"; path = "Target Support Files/Pods-Shared-HelloWorld-macOS/Pods-Shared-HelloWorld-macOS.debug.xcconfig"; sourceTree = "<group>"; };
26
17
  13B07F961A680F5B00A75B9A /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
27
- 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
28
- 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
29
- 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
30
- 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
31
- 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = HelloWorld/Info.plist; sourceTree = "<group>"; };
32
- 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
33
- 38423A3E24576CBC00BC2EAC /* main.jsbundle */ = {isa = PBXFileReference; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
34
18
  514201492437B4B30078DB4F /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
35
19
  5142014B2437B4B30078DB4F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
36
- 5142014C2437B4B30078DB4F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
37
- 5142014E2437B4B30078DB4F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
38
- 5142014F2437B4B30078DB4F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
20
+ 5142014C2437B4B30078DB4F /* AppDelegate.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = AppDelegate.mm; sourceTree = "<group>"; };
39
21
  514201512437B4B40078DB4F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
40
22
  514201542437B4B40078DB4F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
41
23
  514201562437B4B40078DB4F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
42
24
  514201572437B4B40078DB4F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
43
25
  514201592437B4B40078DB4F /* HelloWorld.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = HelloWorld.entitlements; sourceTree = "<group>"; };
44
- 9D32DFD059D5DB6DDEF38881 /* Pods-Shared-HelloWorld-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-HelloWorld-iOS.debug.xcconfig"; path = "Target Support Files/Pods-Shared-HelloWorld-iOS/Pods-Shared-HelloWorld-iOS.debug.xcconfig"; sourceTree = "<group>"; };
45
- A82DFB63B157C65E5D698CA2 /* Pods-Shared-HelloWorld-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-HelloWorld-iOS.release.xcconfig"; path = "Target Support Files/Pods-Shared-HelloWorld-iOS/Pods-Shared-HelloWorld-iOS.release.xcconfig"; sourceTree = "<group>"; };
46
- C8DBC48FD7C3AEF576C57B21 /* libPods-Shared-HelloWorld-macOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Shared-HelloWorld-macOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
47
- CE0E74F571E1F48FF00A8324 /* Pods-Shared-HelloWorld-macOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Shared-HelloWorld-macOS.release.xcconfig"; path = "Target Support Files/Pods-Shared-HelloWorld-macOS/Pods-Shared-HelloWorld-macOS.release.xcconfig"; sourceTree = "<group>"; };
48
26
  ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
49
- ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
50
- FB6EED1BDEABADF047CC5223 /* libPods-Shared-HelloWorld-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Shared-HelloWorld-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
51
27
  /* End PBXFileReference section */
52
28
 
53
29
  /* Begin PBXFrameworksBuildPhase section */
@@ -55,7 +31,6 @@
55
31
  isa = PBXFrameworksBuildPhase;
56
32
  buildActionMask = 2147483647;
57
33
  files = (
58
- B5C72D9C27A1E1D711C050EF /* libPods-Shared-HelloWorld-iOS.a in Frameworks */,
59
34
  );
60
35
  runOnlyForDeploymentPostprocessing = 0;
61
36
  };
@@ -63,45 +38,16 @@
63
38
  isa = PBXFrameworksBuildPhase;
64
39
  buildActionMask = 2147483647;
65
40
  files = (
66
- 0496A360A6F874C295C73D4B /* libPods-Shared-HelloWorld-macOS.a in Frameworks */,
67
41
  );
68
42
  runOnlyForDeploymentPostprocessing = 0;
69
43
  };
70
44
  /* End PBXFrameworksBuildPhase section */
71
45
 
72
46
  /* Begin PBXGroup section */
73
- 13B07FAE1A68108700A75B9A /* HelloWorld-iOS */ = {
74
- isa = PBXGroup;
75
- children = (
76
- 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
77
- 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
78
- 13B07FB01A68108700A75B9A /* AppDelegate.m */,
79
- 13B07FB51A68108700A75B9A /* Images.xcassets */,
80
- 13B07FB61A68108700A75B9A /* Info.plist */,
81
- 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
82
- 13B07FB71A68108700A75B9A /* main.m */,
83
- );
84
- path = "HelloWorld-iOS";
85
- sourceTree = "<group>";
86
- };
87
- 1986A43FA6A91CFACDF0A798 /* Pods */ = {
88
- isa = PBXGroup;
89
- children = (
90
- 9D32DFD059D5DB6DDEF38881 /* Pods-Shared-HelloWorld-iOS.debug.xcconfig */,
91
- A82DFB63B157C65E5D698CA2 /* Pods-Shared-HelloWorld-iOS.release.xcconfig */,
92
- 02422F9FB6FF5F34B4E63E6F /* Pods-Shared-HelloWorld-macOS.debug.xcconfig */,
93
- CE0E74F571E1F48FF00A8324 /* Pods-Shared-HelloWorld-macOS.release.xcconfig */,
94
- );
95
- path = Pods;
96
- sourceTree = "<group>";
97
- };
98
47
  2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
99
48
  isa = PBXGroup;
100
49
  children = (
101
50
  ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
102
- ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
103
- FB6EED1BDEABADF047CC5223 /* libPods-Shared-HelloWorld-iOS.a */,
104
- C8DBC48FD7C3AEF576C57B21 /* libPods-Shared-HelloWorld-macOS.a */,
105
51
  );
106
52
  name = Frameworks;
107
53
  sourceTree = "<group>";
@@ -109,11 +55,8 @@
109
55
  5142014A2437B4B30078DB4F /* HelloWorld-macOS */ = {
110
56
  isa = PBXGroup;
111
57
  children = (
112
- 38423A3E24576CBC00BC2EAC /* main.jsbundle */,
113
58
  5142014B2437B4B30078DB4F /* AppDelegate.h */,
114
- 5142014C2437B4B30078DB4F /* AppDelegate.m */,
115
- 5142014E2437B4B30078DB4F /* ViewController.h */,
116
- 5142014F2437B4B30078DB4F /* ViewController.m */,
59
+ 5142014C2437B4B30078DB4F /* AppDelegate.mm */,
117
60
  514201512437B4B40078DB4F /* Assets.xcassets */,
118
61
  514201532437B4B40078DB4F /* Main.storyboard */,
119
62
  514201562437B4B40078DB4F /* Info.plist */,
@@ -134,11 +77,9 @@
134
77
  isa = PBXGroup;
135
78
  children = (
136
79
  5142014A2437B4B30078DB4F /* HelloWorld-macOS */,
137
- 13B07FAE1A68108700A75B9A /* HelloWorld-iOS */,
138
80
  832341AE1AAA6A7D00B99B32 /* Libraries */,
139
81
  83CBBA001A601CBA00E9B192 /* Products */,
140
82
  2D16E6871FA4F8E400B85C8A /* Frameworks */,
141
- 1986A43FA6A91CFACDF0A798 /* Pods */,
142
83
  );
143
84
  indentWidth = 2;
144
85
  sourceTree = "<group>";
@@ -238,8 +179,6 @@
238
179
  isa = PBXResourcesBuildPhase;
239
180
  buildActionMask = 2147483647;
240
181
  files = (
241
- 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
242
- 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
243
182
  );
244
183
  runOnlyForDeploymentPostprocessing = 0;
245
184
  };
@@ -375,8 +314,6 @@
375
314
  isa = PBXSourcesBuildPhase;
376
315
  buildActionMask = 2147483647;
377
316
  files = (
378
- 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
379
- 13B07FC11A68108700A75B9A /* main.m in Sources */,
380
317
  );
381
318
  runOnlyForDeploymentPostprocessing = 0;
382
319
  };
@@ -384,23 +321,14 @@
384
321
  isa = PBXSourcesBuildPhase;
385
322
  buildActionMask = 2147483647;
386
323
  files = (
387
- 514201502437B4B30078DB4F /* ViewController.m in Sources */,
388
324
  514201582437B4B40078DB4F /* main.m in Sources */,
389
- 5142014D2437B4B30078DB4F /* AppDelegate.m in Sources */,
325
+ 5142014D2437B4B30078DB4F /* AppDelegate.mm in Sources */,
390
326
  );
391
327
  runOnlyForDeploymentPostprocessing = 0;
392
328
  };
393
329
  /* End PBXSourcesBuildPhase section */
394
330
 
395
331
  /* Begin PBXVariantGroup section */
396
- 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
397
- isa = PBXVariantGroup;
398
- children = (
399
- 13B07FB21A68108700A75B9A /* Base */,
400
- );
401
- name = LaunchScreen.xib;
402
- sourceTree = "<group>";
403
- };
404
332
  514201532437B4B40078DB4F /* Main.storyboard */ = {
405
333
  isa = PBXVariantGroup;
406
334
  children = (
@@ -414,7 +342,6 @@
414
342
  /* Begin XCBuildConfiguration section */
415
343
  13B07F941A680F5B00A75B9A /* Debug */ = {
416
344
  isa = XCBuildConfiguration;
417
- baseConfigurationReference = 9D32DFD059D5DB6DDEF38881 /* Pods-Shared-HelloWorld-iOS.debug.xcconfig */;
418
345
  buildSettings = {
419
346
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
420
347
  CLANG_ENABLE_MODULES = YES;
@@ -437,7 +364,6 @@
437
364
  };
438
365
  13B07F951A680F5B00A75B9A /* Release */ = {
439
366
  isa = XCBuildConfiguration;
440
- baseConfigurationReference = A82DFB63B157C65E5D698CA2 /* Pods-Shared-HelloWorld-iOS.release.xcconfig */;
441
367
  buildSettings = {
442
368
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
443
369
  CLANG_ENABLE_MODULES = YES;
@@ -458,7 +384,6 @@
458
384
  };
459
385
  5142015B2437B4B40078DB4F /* Debug */ = {
460
386
  isa = XCBuildConfiguration;
461
- baseConfigurationReference = 02422F9FB6FF5F34B4E63E6F /* Pods-Shared-HelloWorld-macOS.debug.xcconfig */;
462
387
  buildSettings = {
463
388
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
464
389
  CURRENT_PROJECT_VERSION = 1;
@@ -479,7 +404,6 @@
479
404
  };
480
405
  5142015C2437B4B40078DB4F /* Release */ = {
481
406
  isa = XCBuildConfiguration;
482
- baseConfigurationReference = CE0E74F571E1F48FF00A8324 /* Pods-Shared-HelloWorld-macOS.release.xcconfig */;
483
407
  buildSettings = {
484
408
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
485
409
  CURRENT_PROJECT_VERSION = 1;
@@ -1,32 +1,27 @@
1
1
  require_relative '../node_modules/react-native-macos/scripts/react_native_pods'
2
2
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
3
 
4
+ prepare_react_native_project!
5
+
4
6
  target 'HelloWorld-macOS' do
5
7
  platform :macos, '10.15'
6
8
  use_native_modules!
9
+
10
+ # Flags change depending on the env values.
11
+ flags = get_default_flags()
12
+
7
13
  use_react_native!(
8
14
  :path => '../node_modules/react-native-macos',
9
- # to enable hermes on macOS, change `false` to `true` and then install pods
10
- :hermes_enabled => false
15
+ :hermes_enabled => false,
16
+ :fabric_enabled => ENV['RCT_NEW_ARCH_ENABLED'] == '1',
17
+ # Flipper is not compatible w/ macOS
18
+ :flipper_configuration => FlipperConfiguration.disabled,
19
+ # An absolute path to your application root.
20
+ :app_path => "#{Pod::Config.instance.installation_root}/.."
11
21
  )
12
22
 
13
- # Pods specifically for macOS target
14
- end
15
-
16
- target 'HelloWorld-iOS' do
17
- platform :ios, '12.4'
18
- use_native_modules!
19
- use_react_native!(:path => '../node_modules/react-native-macos')
20
-
21
- # Enables Flipper.
22
- #
23
- # Note that if you have use_frameworks! enabled, Flipper will not work and
24
- # you should disable these next few lines.
25
- use_flipper!
26
-
27
23
  post_install do |installer|
28
24
  react_native_post_install(installer)
29
25
  __apply_Xcode_12_5_M1_post_install_workaround(installer)
30
26
  end
31
- # Pods specifically for iOS target
32
27
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.71.12",
3
+ "version": "0.71.14",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "18.2.0",
15
- "react-native-macos": "0.71.12"
15
+ "react-native-macos": "0.71.14"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.20.0",
@@ -1,8 +0,0 @@
1
- #import <React/RCTBridgeDelegate.h>
2
- #import <React/RCTUIKit.h> // [macOS]
3
-
4
- @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
5
-
6
- @property (nonatomic, strong) UIWindow *window;
7
-
8
- @end
@@ -1,35 +0,0 @@
1
- #import "AppDelegate.h"
2
-
3
- #import <React/RCTBridge.h>
4
- #import <React/RCTBundleURLProvider.h>
5
- #import <React/RCTRootView.h>
6
-
7
- @implementation AppDelegate
8
-
9
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
10
- {
11
- RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
12
- RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
13
- moduleName:@"HelloWorld"
14
- initialProperties:nil];
15
-
16
- rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
17
-
18
- self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
19
- UIViewController *rootViewController = [UIViewController new];
20
- rootViewController.view = rootView;
21
- self.window.rootViewController = rootViewController;
22
- [self.window makeKeyAndVisible];
23
- return YES;
24
- }
25
-
26
- - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
27
- {
28
- #if DEBUG
29
- return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
30
- #else
31
- return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
32
- #endif
33
- }
34
-
35
- @end
@@ -1,42 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
3
- <dependencies>
4
- <deployment identifier="iOS"/>
5
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
6
- <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
7
- </dependencies>
8
- <objects>
9
- <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
- <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
- <view contentMode="scaleToFill" id="iN0-l3-epB">
12
- <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
13
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
14
- <subviews>
15
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
16
- <rect key="frame" x="20" y="439" width="441" height="21"/>
17
- <fontDescription key="fontDescription" type="system" pointSize="17"/>
18
- <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
19
- <nil key="highlightedColor"/>
20
- </label>
21
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="HelloWorld" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
22
- <rect key="frame" x="20" y="140" width="441" height="43"/>
23
- <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
24
- <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
25
- <nil key="highlightedColor"/>
26
- </label>
27
- </subviews>
28
- <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
29
- <constraints>
30
- <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
31
- <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
32
- <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
33
- <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
34
- <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
35
- <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
36
- </constraints>
37
- <nil key="simulatedStatusBarMetrics"/>
38
- <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
39
- <point key="canvasLocation" x="548" y="455"/>
40
- </view>
41
- </objects>
42
- </document>
@@ -1,38 +0,0 @@
1
- {
2
- "images" : [
3
- {
4
- "idiom" : "iphone",
5
- "size" : "29x29",
6
- "scale" : "2x"
7
- },
8
- {
9
- "idiom" : "iphone",
10
- "size" : "29x29",
11
- "scale" : "3x"
12
- },
13
- {
14
- "idiom" : "iphone",
15
- "size" : "40x40",
16
- "scale" : "2x"
17
- },
18
- {
19
- "idiom" : "iphone",
20
- "size" : "40x40",
21
- "scale" : "3x"
22
- },
23
- {
24
- "idiom" : "iphone",
25
- "size" : "60x60",
26
- "scale" : "2x"
27
- },
28
- {
29
- "idiom" : "iphone",
30
- "size" : "60x60",
31
- "scale" : "3x"
32
- }
33
- ],
34
- "info" : {
35
- "version" : 1,
36
- "author" : "xcode"
37
- }
38
- }
@@ -1,6 +0,0 @@
1
- {
2
- "info" : {
3
- "version" : 1,
4
- "author" : "xcode"
5
- }
6
- }
@@ -1,57 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleDisplayName</key>
8
- <string>$(PRODUCT_NAME)</string>
9
- <key>CFBundleExecutable</key>
10
- <string>$(EXECUTABLE_NAME)</string>
11
- <key>CFBundleIdentifier</key>
12
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
- <key>CFBundleInfoDictionaryVersion</key>
14
- <string>6.0</string>
15
- <key>CFBundleName</key>
16
- <string>$(PRODUCT_NAME)</string>
17
- <key>CFBundlePackageType</key>
18
- <string>APPL</string>
19
- <key>CFBundleShortVersionString</key>
20
- <string>1.0</string>
21
- <key>CFBundleSignature</key>
22
- <string>????</string>
23
- <key>CFBundleVersion</key>
24
- <string>1</string>
25
- <key>LSRequiresIPhoneOS</key>
26
- <true/>
27
- <key>NSAppTransportSecurity</key>
28
- <dict>
29
- <key>NSAllowsArbitraryLoads</key>
30
- <true/>
31
- <key>NSExceptionDomains</key>
32
- <dict>
33
- <key>localhost</key>
34
- <dict>
35
- <key>NSExceptionAllowsInsecureHTTPLoads</key>
36
- <true/>
37
- </dict>
38
- </dict>
39
- </dict>
40
- <key>NSLocationWhenInUseUsageDescription</key>
41
- <string></string>
42
- <key>UILaunchStoryboardName</key>
43
- <string>LaunchScreen</string>
44
- <key>UIRequiredDeviceCapabilities</key>
45
- <array>
46
- <string>armv7</string>
47
- </array>
48
- <key>UISupportedInterfaceOrientations</key>
49
- <array>
50
- <string>UIInterfaceOrientationPortrait</string>
51
- <string>UIInterfaceOrientationLandscapeLeft</string>
52
- <string>UIInterfaceOrientationLandscapeRight</string>
53
- </array>
54
- <key>UIViewControllerBasedStatusBarAppearance</key>
55
- <false/>
56
- </dict>
57
- </plist>
@@ -1,9 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
-
3
- #import "AppDelegate.h"
4
-
5
- int main(int argc, char * argv[]) {
6
- @autoreleasepool {
7
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8
- }
9
- }
@@ -1,32 +0,0 @@
1
- #import "AppDelegate.h"
2
-
3
- #import <React/RCTBridge.h>
4
- #import <React/RCTBundleURLProvider.h>
5
-
6
- @interface AppDelegate () <RCTBridgeDelegate>
7
-
8
- @end
9
-
10
- @implementation AppDelegate
11
-
12
- - (void)awakeFromNib {
13
- [super awakeFromNib];
14
-
15
- _bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:nil];
16
- }
17
-
18
- - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
19
- // Insert code here to initialize your application
20
- }
21
-
22
- - (void)applicationWillTerminate:(NSNotification *)aNotification {
23
- // Insert code here to tear down your application
24
- }
25
-
26
- #pragma mark - RCTBridgeDelegate Methods
27
-
28
- - (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge {
29
- return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; // .jsbundle;
30
- }
31
-
32
- @end
@@ -1,5 +0,0 @@
1
- #import <Cocoa/Cocoa.h>
2
-
3
- @interface ViewController : NSViewController
4
-
5
- @end
@@ -1,22 +0,0 @@
1
- #import "ViewController.h"
2
- #import "AppDelegate.h"
3
-
4
- #import <React/RCTRootView.h>
5
-
6
- @implementation ViewController
7
-
8
- - (void)viewDidLoad {
9
- [super viewDidLoad];
10
-
11
- RCTBridge *bridge = [((AppDelegate *)[NSApp delegate])bridge];
12
- RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"HelloWorld" initialProperties:nil];
13
-
14
- NSView *view = [self view];
15
-
16
- [view addSubview:rootView];
17
- [rootView setBackgroundColor:[NSColor windowBackgroundColor]];
18
- [rootView setFrame:[view bounds]];
19
- [rootView setAutoresizingMask:(NSViewMinXMargin | NSViewMaxXMargin | NSViewMinYMargin | NSViewMaxYMargin | NSViewWidthSizable | NSViewHeightSizable)];
20
- }
21
-
22
- @end