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

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,8 +6,7 @@
6
6
  //
7
7
 
8
8
  import UIKit
9
- import React
10
- import BMUIComponents
9
+ import ReactBridge
11
10
  import SnapKit
12
11
  import SDWebImage
13
12
  import SDWebImageSVGCoder
@@ -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,9 +6,8 @@
6
6
  //
7
7
 
8
8
  import UIKit
9
- import React
10
9
  import BMTheme
11
- import BMUIComponents
10
+ import ReactBridge
12
11
  import SnapKit
13
12
 
14
13
  /// iOS 原生文本按钮 ViewManager - 对应 Android 的 TextButtonViewManager
@@ -0,0 +1,4 @@
1
+ module ReactBridge {
2
+ header "ReactBridge-Bridging-Header.h"
3
+ export *
4
+ }
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.6",
4
4
  "description": "React Native UI Components Library",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -31,6 +31,13 @@ Pod::Spec.new do |s|
31
31
 
32
32
  s.frameworks = "UIKit"
33
33
 
34
+ # Use a module map instead of a bridging header so this pod compiles correctly
35
+ # as both a static library and a framework target (new arch / use_frameworks!).
36
+ # A bridging header is unsupported for framework targets (Xcode restriction).
37
+ s.pod_target_xcconfig = {
38
+ 'SWIFT_INCLUDE_PATHS' => '$(PODS_TARGET_SRCROOT)/ios/DemoProject/NativeDesign'
39
+ }
40
+
34
41
  # ─── 依赖 ───
35
42
 
36
43
  # React Native