@expensify/react-native-live-markdown 0.1.208 → 0.1.210

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.
@@ -4,6 +4,10 @@ react_native_node_modules_dir = ENV['REACT_NATIVE_NODE_MODULES_DIR'] || File.joi
4
4
  react_native_json = JSON.parse(File.read(File.join(react_native_node_modules_dir, 'react-native/package.json')))
5
5
  react_native_minor_version = react_native_json['version'].split('.')[1].to_i
6
6
 
7
+ pods_root = Pod::Config.instance.project_pods_root
8
+ react_native_reanimated_node_modules_dir = ENV['REACT_NATIVE_REANIMATED_NODE_MODULES_DIR'] || File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native-reanimated/package.json')"`)
9
+ react_native_reanimated_node_modules_dir_from_pods_root = Pathname.new(react_native_reanimated_node_modules_dir).relative_path_from(pods_root).to_s
10
+
7
11
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
8
12
  folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
9
13
 
@@ -23,7 +27,11 @@ Pod::Spec.new do |s|
23
27
  s.dependency "RNReanimated/worklets"
24
28
 
25
29
  s.xcconfig = {
26
- "OTHER_CFLAGS" => "$(inherited) -DREACT_NATIVE_MINOR_VERSION=#{react_native_minor_version}"
30
+ "OTHER_CFLAGS" => "$(inherited) -DREACT_NATIVE_MINOR_VERSION=#{react_native_minor_version}",
31
+ "HEADER_SEARCH_PATHS" => [
32
+ "\"$(PODS_ROOT)/#{react_native_reanimated_node_modules_dir_from_pods_root}/apple\"",
33
+ "\"$(PODS_ROOT)/#{react_native_reanimated_node_modules_dir_from_pods_root}/Common/cpp\"",
34
+ ].join(' '),
27
35
  }
28
36
 
29
37
  install_modules_dependencies(s)
@@ -33,6 +41,7 @@ Pod::Spec.new do |s|
33
41
  "react/renderer/textlayoutmanager/platform/ios",
34
42
  "react/renderer/components/textinput/platform/ios",
35
43
  ])
44
+ add_dependency(s, "React-rendererconsistency")
36
45
  end
37
46
 
38
47
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
@@ -61,6 +61,7 @@ public class MarkdownTextInputDecoratorView extends View {
61
61
  mReactEditText = (ReactEditText) previousSibling;
62
62
  mTextWatcher = new MarkdownTextWatcher(mMarkdownUtils);
63
63
  mReactEditText.addTextChangedListener(mTextWatcher);
64
+ applyNewStyles();
64
65
  }
65
66
  }
66
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.208",
3
+ "version": "0.1.210",
4
4
  "description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",