native-view-ios-26 1.0.0 → 1.0.2
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/{components.ts → components.js} +5 -18
- package/index.d.ts +5 -4
- package/index.js +1 -1
- package/native-view-ios-26.podspec +20 -0
- package/package.json +3 -2
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { requireNativeComponent
|
|
2
|
+
import { requireNativeComponent } from 'react-native';
|
|
3
3
|
|
|
4
4
|
// Native View Component
|
|
5
|
-
|
|
6
|
-
showBlur?: boolean;
|
|
7
|
-
style?: ViewStyle;
|
|
8
|
-
}
|
|
5
|
+
const RNNativeSafeAreaView = requireNativeComponent('NativeSafeAreaView');
|
|
9
6
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
export const NativeSafeAreaView: React.FC<NativeSafeAreaViewProps> = ({
|
|
7
|
+
export const NativeSafeAreaView = ({
|
|
13
8
|
showBlur = true,
|
|
14
9
|
children,
|
|
15
10
|
style,
|
|
@@ -23,17 +18,9 @@ export const NativeSafeAreaView: React.FC<NativeSafeAreaViewProps> = ({
|
|
|
23
18
|
};
|
|
24
19
|
|
|
25
20
|
// Native ScrollView Component
|
|
26
|
-
|
|
27
|
-
showBlur?: boolean;
|
|
28
|
-
scrollEnabled?: boolean;
|
|
29
|
-
showsVerticalScrollIndicator?: boolean;
|
|
30
|
-
showsHorizontalScrollIndicator?: boolean;
|
|
31
|
-
style?: ViewStyle;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const RNNativeSafeAreaScrollView = requireNativeComponent<NativeSafeAreaScrollViewProps>('NativeSafeAreaScrollView');
|
|
21
|
+
const RNNativeSafeAreaScrollView = requireNativeComponent('NativeSafeAreaScrollView');
|
|
35
22
|
|
|
36
|
-
export const NativeSafeAreaScrollView
|
|
23
|
+
export const NativeSafeAreaScrollView = ({
|
|
37
24
|
showBlur = true,
|
|
38
25
|
scrollEnabled = true,
|
|
39
26
|
showsVerticalScrollIndicator = true,
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ViewProps, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
4
|
export interface SafeAreaInsets {
|
|
@@ -29,7 +29,7 @@ declare const NativeViewIOS26: NativeViewIOS26;
|
|
|
29
29
|
|
|
30
30
|
export default NativeViewIOS26;
|
|
31
31
|
|
|
32
|
-
// Native Components
|
|
32
|
+
// Native Components Props
|
|
33
33
|
export interface NativeSafeAreaViewProps extends ViewProps {
|
|
34
34
|
/**
|
|
35
35
|
* Whether to show blur effect under status bar
|
|
@@ -65,6 +65,7 @@ export interface NativeSafeAreaScrollViewProps extends ViewProps {
|
|
|
65
65
|
children?: React.ReactNode;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
export const
|
|
68
|
+
// Component exports
|
|
69
|
+
export const NativeSafeAreaView: React.FC<NativeSafeAreaViewProps>;
|
|
70
|
+
export const NativeSafeAreaScrollView: React.FC<NativeSafeAreaScrollViewProps>;
|
|
70
71
|
|
package/index.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "native-view-ios-26"
|
|
7
|
+
s.version = package['version']
|
|
8
|
+
s.summary = package['description']
|
|
9
|
+
s.homepage = package['repository']['url']
|
|
10
|
+
s.license = package['license']
|
|
11
|
+
s.authors = { package['author'] => "" }
|
|
12
|
+
s.platforms = { :ios => "13.0" }
|
|
13
|
+
s.source = { :git => package['repository']['url'], :tag => "#{s.version}" }
|
|
14
|
+
|
|
15
|
+
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
16
|
+
|
|
17
|
+
s.swift_version = '5.0'
|
|
18
|
+
|
|
19
|
+
s.dependency "React-Core"
|
|
20
|
+
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "native-view-ios-26",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Native iOS Safe Area module for React Native with Swift bridge",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"ios",
|
|
35
35
|
"index.js",
|
|
36
36
|
"index.d.ts",
|
|
37
|
-
"components.
|
|
37
|
+
"components.js",
|
|
38
|
+
"*.podspec",
|
|
38
39
|
"!**/__tests__",
|
|
39
40
|
"!**/__fixtures__",
|
|
40
41
|
"!**/__mocks__"
|