@sagepilot-ai/react-native-sdk 0.2.2 → 0.2.4
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/README.md +34 -6
- package/android/build.gradle +53 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/ai/sagepilot/reactnativesdk/SagepilotInsetsChangeEvent.java +26 -0
- package/android/src/main/java/ai/sagepilot/reactnativesdk/SagepilotInsetsView.java +78 -0
- package/android/src/main/java/ai/sagepilot/reactnativesdk/SagepilotInsetsViewManager.java +59 -0
- package/android/src/main/java/ai/sagepilot/reactnativesdk/SagepilotReactNativeSdkPackage.java +20 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SagepilotInsetsViewManagerDelegate.java +25 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/SagepilotInsetsViewManagerInterface.java +10 -0
- package/dist/{index.d.cts → index.d.mts} +38 -3
- package/dist/index.d.ts +38 -3
- package/dist/index.js +299 -96
- package/dist/{index.cjs → index.mjs} +267 -119
- package/package.json +18 -8
- package/react-native.config.js +5 -1
- package/src/specs/SagepilotInsetsViewNativeComponent.ts +17 -0
- package/android/.gitkeep +0 -1
package/react-native.config.js
CHANGED
|
@@ -2,7 +2,11 @@ module.exports = {
|
|
|
2
2
|
dependency: {
|
|
3
3
|
platforms: {
|
|
4
4
|
ios: {},
|
|
5
|
-
android: {
|
|
5
|
+
android: {
|
|
6
|
+
sourceDir: "./android",
|
|
7
|
+
packageImportPath: "import ai.sagepilot.reactnativesdk.SagepilotReactNativeSdkPackage;",
|
|
8
|
+
packageInstance: "new SagepilotReactNativeSdkPackage()"
|
|
9
|
+
}
|
|
6
10
|
}
|
|
7
11
|
}
|
|
8
12
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HostComponent, ViewProps } from "react-native";
|
|
2
|
+
import type { DirectEventHandler, Double } from "react-native/Libraries/Types/CodegenTypes";
|
|
3
|
+
import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent";
|
|
4
|
+
|
|
5
|
+
export type SagepilotInsetsChangeEvent = Readonly<{
|
|
6
|
+
top: Double;
|
|
7
|
+
bottom: Double;
|
|
8
|
+
imeBottom: Double;
|
|
9
|
+
systemBarsBottom: Double;
|
|
10
|
+
keyboardVisible: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
|
|
13
|
+
export interface NativeProps extends ViewProps {
|
|
14
|
+
onInsetsChange?: DirectEventHandler<SagepilotInsetsChangeEvent>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default codegenNativeComponent<NativeProps>("SagepilotInsetsView") as HostComponent<NativeProps>;
|
package/android/.gitkeep
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|