@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.
|
@@ -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,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
|