@bm-fe/react-native-ui-components 1.1.4 → 1.1.5

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.
@@ -6,7 +6,6 @@
6
6
  //
7
7
 
8
8
  import UIKit
9
- import React
10
9
  import BMUIComponents
11
10
  import SnapKit
12
11
  import SDWebImage
@@ -0,0 +1,12 @@
1
+ //
2
+ // ReactBridge-Bridging-Header.h
3
+ // react-native-ui-components
4
+ //
5
+ // Swift files in this pod cannot use `import React` in a static-library
6
+ // CocoaPods setup (no use_frameworks!). This bridging header exposes the
7
+ // necessary React-Core Objective-C types to Swift.
8
+ //
9
+
10
+ #import <React/RCTViewManager.h>
11
+ #import <React/RCTBridgeModule.h>
12
+ #import <React/RCTComponent.h>
@@ -6,7 +6,6 @@
6
6
  //
7
7
 
8
8
  import UIKit
9
- import React
10
9
  import BMTheme
11
10
  import BMUIComponents
12
11
  import SnapKit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bm-fe/react-native-ui-components",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "React Native UI Components Library",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -31,6 +31,12 @@ Pod::Spec.new do |s|
31
31
 
32
32
  s.frameworks = "UIKit"
33
33
 
34
+ # Swift files cannot `import React` in a static-library CocoaPods setup
35
+ # (no use_frameworks!). Use a bridging header to expose React-Core ObjC types.
36
+ s.pod_target_xcconfig = {
37
+ 'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/ios/DemoProject/NativeDesign/ReactBridge-Bridging-Header.h'
38
+ }
39
+
34
40
  # ─── 依赖 ───
35
41
 
36
42
  # React Native