@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.
- package/ios/DemoProject/NativeDesign/PrimaryButtonViewManager.swift +1 -2
- package/ios/DemoProject/NativeDesign/ReactBridge-Bridging-Header.h +12 -0
- package/ios/DemoProject/NativeDesign/TextButtonViewManager.swift +1 -2
- package/ios/DemoProject/NativeDesign/module.modulemap +4 -0
- package/package.json +1 -1
- package/react-native-ui-components.podspec +7 -0
|
@@ -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>
|
package/package.json
CHANGED
|
@@ -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
|