react-native-transformer-text-input 0.1.0-alpha.3 → 0.1.0-alpha.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 CHANGED
@@ -150,10 +150,6 @@ const phoneTransformer = new PhoneNumberTransformer({
150
150
  />
151
151
  ```
152
152
 
153
- ## AI Disclosure
154
-
155
- Code in this repository is thought through and mostly written by humans, with AI used to improve clarity, consistency, and implementation details.
156
-
157
153
  ## Acknowledgments
158
154
 
159
155
  - [react-native-live-markdown](https://github.com/Expensify/react-native-live-markdown) and [react-native-advanced-input-mask](https://github.com/IvanIhnatsiuk/react-native-advanced-input-mask) for examples of how to extend TextInput.
@@ -3,6 +3,11 @@ require "json"
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
4
 
5
5
  pods_root = Pod::Config.instance.project_pods_root
6
+
7
+ react_native_node_modules_dir = File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native/package.json')"`)
8
+ react_native_common_dir_absolute = File.join(react_native_node_modules_dir, 'ReactCommon')
9
+ react_native_common_dir = Pathname.new(react_native_common_dir_absolute).relative_path_from(pods_root).to_s
10
+
6
11
  react_native_worklets_node_modules_dir = ENV['REACT_NATIVE_WORKLETS_NODE_MODULES_DIR'] ||
7
12
  File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native-worklets/package.json')"`)
8
13
  react_native_worklets_node_modules_dir_from_pods_root = Pathname.new(react_native_worklets_node_modules_dir).relative_path_from(pods_root).to_s
@@ -28,6 +33,7 @@ Pod::Spec.new do |s|
28
33
 
29
34
  s.xcconfig = {
30
35
  "HEADER_SEARCH_PATHS" => [
36
+ "\"$(PODS_ROOT)/#{react_native_common_dir}\"",
31
37
  "\"$(PODS_ROOT)/#{react_native_worklets_node_modules_dir_from_pods_root}/apple\"",
32
38
  "\"$(PODS_ROOT)/#{react_native_worklets_node_modules_dir_from_pods_root}/Common/cpp\"",
33
39
  ].join(' '),
@@ -1,7 +1,7 @@
1
1
  #import "TransformerTextInputModule.h"
2
2
 
3
3
  #import <jsi/jsi.h>
4
- #import <rnworklets/worklets/apple/WorkletsModule.h>
4
+ #import <worklets/apple/WorkletsModule.h>
5
5
 
6
6
  #import "TransformerTextInputRuntime.h"
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-transformer-text-input",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.4",
4
4
  "description": "TextInput component that allows transforming text synchronously with a worklet",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",