@bm-fe/react-native-ui-components 1.1.5 → 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,7 +6,7 @@
6
6
  //
7
7
 
8
8
  import UIKit
9
- import BMUIComponents
9
+ import ReactBridge
10
10
  import SnapKit
11
11
  import SDWebImage
12
12
  import SDWebImageSVGCoder
@@ -7,7 +7,7 @@
7
7
 
8
8
  import UIKit
9
9
  import BMTheme
10
- import BMUIComponents
10
+ import ReactBridge
11
11
  import SnapKit
12
12
 
13
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.5",
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,10 +31,11 @@ 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.
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).
36
37
  s.pod_target_xcconfig = {
37
- 'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/ios/DemoProject/NativeDesign/ReactBridge-Bridging-Header.h'
38
+ 'SWIFT_INCLUDE_PATHS' => '$(PODS_TARGET_SRCROOT)/ios/DemoProject/NativeDesign'
38
39
  }
39
40
 
40
41
  # ─── 依赖 ───