react-native-srschat 0.1.0

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.
Files changed (65) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +33 -0
  3. package/android/generated/android/app/build/generated/source/codegen/jni/CMakeLists.txt +36 -0
  4. package/android/generated/android/app/build/generated/source/codegen/jni/RNSrschatSpec-generated.cpp +22 -0
  5. package/android/generated/android/app/build/generated/source/codegen/jni/RNSrschatSpec.h +24 -0
  6. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNSrschatSpec/RNSrschatSpecJSI-generated.cpp +17 -0
  7. package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNSrschatSpec/RNSrschatSpecJSI.h +19 -0
  8. package/ios/generated/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2321 -0
  9. package/ios/generated/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h +2761 -0
  10. package/ios/generated/build/generated/ios/FBReactNativeSpecJSI-generated.cpp +2923 -0
  11. package/ios/generated/build/generated/ios/FBReactNativeSpecJSI.h +7718 -0
  12. package/ios/generated/build/generated/ios/RCTModulesConformingToProtocolsProvider.h +18 -0
  13. package/ios/generated/build/generated/ios/RCTModulesConformingToProtocolsProvider.mm +33 -0
  14. package/ios/generated/build/generated/ios/RNSrschatSpec/RNSrschatSpec-generated.mm +16 -0
  15. package/ios/generated/build/generated/ios/RNSrschatSpec/RNSrschatSpec.h +35 -0
  16. package/ios/generated/build/generated/ios/RNSrschatSpecJSI-generated.cpp +17 -0
  17. package/ios/generated/build/generated/ios/RNSrschatSpecJSI.h +19 -0
  18. package/lib/commonjs/components/Chat.js +43 -0
  19. package/lib/commonjs/components/Chat.js.map +1 -0
  20. package/lib/commonjs/components/ChatInput.js +64 -0
  21. package/lib/commonjs/components/ChatInput.js.map +1 -0
  22. package/lib/commonjs/components/ChatMessage.js +58 -0
  23. package/lib/commonjs/components/ChatMessage.js.map +1 -0
  24. package/lib/commonjs/index.js +37 -0
  25. package/lib/commonjs/index.js.map +1 -0
  26. package/lib/commonjs/types.js +2 -0
  27. package/lib/commonjs/types.js.map +1 -0
  28. package/lib/module/components/Chat.js +39 -0
  29. package/lib/module/components/Chat.js.map +1 -0
  30. package/lib/module/components/ChatInput.js +60 -0
  31. package/lib/module/components/ChatInput.js.map +1 -0
  32. package/lib/module/components/ChatMessage.js +54 -0
  33. package/lib/module/components/ChatMessage.js.map +1 -0
  34. package/lib/module/index.js +8 -0
  35. package/lib/module/index.js.map +1 -0
  36. package/lib/module/types.js +2 -0
  37. package/lib/module/types.js.map +1 -0
  38. package/lib/typescript/commonjs/package.json +1 -0
  39. package/lib/typescript/commonjs/src/components/Chat.d.ts +3 -0
  40. package/lib/typescript/commonjs/src/components/Chat.d.ts.map +1 -0
  41. package/lib/typescript/commonjs/src/components/ChatInput.d.ts +6 -0
  42. package/lib/typescript/commonjs/src/components/ChatInput.d.ts.map +1 -0
  43. package/lib/typescript/commonjs/src/components/ChatMessage.d.ts +8 -0
  44. package/lib/typescript/commonjs/src/components/ChatMessage.d.ts.map +1 -0
  45. package/lib/typescript/commonjs/src/index.d.ts +4 -0
  46. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  47. package/lib/typescript/commonjs/src/types.d.ts +12 -0
  48. package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
  49. package/lib/typescript/module/package.json +1 -0
  50. package/lib/typescript/module/src/components/Chat.d.ts +3 -0
  51. package/lib/typescript/module/src/components/Chat.d.ts.map +1 -0
  52. package/lib/typescript/module/src/components/ChatInput.d.ts +6 -0
  53. package/lib/typescript/module/src/components/ChatInput.d.ts.map +1 -0
  54. package/lib/typescript/module/src/components/ChatMessage.d.ts +8 -0
  55. package/lib/typescript/module/src/components/ChatMessage.d.ts.map +1 -0
  56. package/lib/typescript/module/src/index.d.ts +4 -0
  57. package/lib/typescript/module/src/index.d.ts.map +1 -0
  58. package/lib/typescript/module/src/types.d.ts +12 -0
  59. package/lib/typescript/module/src/types.d.ts.map +1 -0
  60. package/package.json +204 -0
  61. package/src/components/Chat.tsx +34 -0
  62. package/src/components/ChatInput.tsx +58 -0
  63. package/src/components/ChatMessage.tsx +51 -0
  64. package/src/index.tsx +6 -0
  65. package/src/types.ts +12 -0
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 alxkai
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # react-native-srschat
2
+
3
+ srschat
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install react-native-srschat
9
+ ```
10
+
11
+ ## Usage
12
+
13
+
14
+ ```js
15
+ import { multiply } from 'react-native-srschat';
16
+
17
+ // ...
18
+
19
+ const result = await multiply(3, 7);
20
+ ```
21
+
22
+
23
+ ## Contributing
24
+
25
+ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
26
+
27
+ ## License
28
+
29
+ MIT
30
+
31
+ ---
32
+
33
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -0,0 +1,36 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ cmake_minimum_required(VERSION 3.13)
7
+ set(CMAKE_VERBOSE_MAKEFILE on)
8
+
9
+ file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNSrschatSpec/*.cpp)
10
+
11
+ add_library(
12
+ react_codegen_RNSrschatSpec
13
+ OBJECT
14
+ ${react_codegen_SRCS}
15
+ )
16
+
17
+ target_include_directories(react_codegen_RNSrschatSpec PUBLIC . react/renderer/components/RNSrschatSpec)
18
+
19
+ target_link_libraries(
20
+ react_codegen_RNSrschatSpec
21
+ fbjni
22
+ jsi
23
+ # We need to link different libraries based on whether we are building rncore or not, that's necessary
24
+ # because we want to break a circular dependency between react_codegen_rncore and reactnative
25
+ reactnative
26
+ )
27
+
28
+ target_compile_options(
29
+ react_codegen_RNSrschatSpec
30
+ PRIVATE
31
+ -DLOG_TAG=\"ReactNative\"
32
+ -fexceptions
33
+ -frtti
34
+ -std=c++20
35
+ -Wall
36
+ )
@@ -0,0 +1,22 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateModuleJniCpp.js
9
+ */
10
+
11
+ #include "RNSrschatSpec.h"
12
+
13
+ namespace facebook::react {
14
+
15
+
16
+
17
+ std::shared_ptr<TurboModule> RNSrschatSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
18
+
19
+ return nullptr;
20
+ }
21
+
22
+ } // namespace facebook::react
@@ -0,0 +1,24 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateModuleJniH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include <ReactCommon/JavaTurboModule.h>
14
+ #include <ReactCommon/TurboModule.h>
15
+ #include <jsi/jsi.h>
16
+
17
+ namespace facebook::react {
18
+
19
+
20
+
21
+ JSI_EXPORT
22
+ std::shared_ptr<TurboModule> RNSrschatSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
23
+
24
+ } // namespace facebook::react
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleCpp.js
8
+ */
9
+
10
+ #include "RNSrschatSpecJSI.h"
11
+
12
+ namespace facebook::react {
13
+
14
+
15
+
16
+
17
+ } // namespace facebook::react
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
+ *
4
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
5
+ * once the code is regenerated.
6
+ *
7
+ * @generated by codegen project: GenerateModuleH.js
8
+ */
9
+
10
+ #pragma once
11
+
12
+ #include <ReactCommon/TurboModule.h>
13
+ #include <react/bridging/Bridging.h>
14
+
15
+ namespace facebook::react {
16
+
17
+
18
+
19
+ } // namespace facebook::react