@expensify/react-native-live-markdown 0.1.160 → 0.1.162

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.
@@ -37,8 +37,10 @@ Pod::Spec.new do |s|
37
37
  ])
38
38
  end
39
39
 
40
- s.subspec "common" do |ss|
41
- ss.source_files = "cpp/**/*.{cpp,h}"
42
- ss.header_dir = "RNLiveMarkdown"
40
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
41
+ s.subspec "newarch" do |ss|
42
+ ss.source_files = "cpp/**/*.{cpp,h}"
43
+ ss.header_dir = "RNLiveMarkdown"
44
+ end
43
45
  end
44
46
  end
@@ -1,5 +1,3 @@
1
- #if defined(RCT_NEW_ARCH_ENABLED) || defined(ANDROID)
2
-
3
1
  #include "MarkdownShadowFamilyRegistry.h"
4
2
 
5
3
  namespace expensify {
@@ -60,5 +58,3 @@ bool MarkdownShadowFamilyRegistry::shouldForceUpdate(facebook::react::Tag tag) {
60
58
 
61
59
  } // namespace livemarkdown
62
60
  } // namespace expensify
63
-
64
- #endif
@@ -1,5 +1,4 @@
1
1
  #pragma once
2
- #if defined(RCT_NEW_ARCH_ENABLED) || defined(ANDROID)
3
2
 
4
3
  #include <react/renderer/core/ShadowNodeFamily.h>
5
4
 
@@ -37,5 +36,3 @@ private:
37
36
 
38
37
  } // namespace livemarkdown
39
38
  } // namespace expensify
40
-
41
- #endif
@@ -1,5 +1,3 @@
1
- #if defined(RCT_NEW_ARCH_ENABLED) || defined(ANDROID)
2
-
3
1
  #include "MarkdownTextInputDecoratorShadowNode.h"
4
2
 
5
3
  using namespace expensify::livemarkdown;
@@ -33,5 +31,3 @@ MarkdownTextInputDecoratorShadowNode::updateFragmentState(
33
31
 
34
32
  } // namespace react
35
33
  } // namespace facebook
36
-
37
- #endif
@@ -1,5 +1,4 @@
1
1
  #pragma once
2
- #if defined(RCT_NEW_ARCH_ENABLED) || defined(ANDROID)
3
2
 
4
3
  #include "MarkdownShadowFamilyRegistry.h"
5
4
  #include "MarkdownTextInputDecoratorState.h"
@@ -45,5 +44,3 @@ private:
45
44
 
46
45
  } // namespace react
47
46
  } // namespace facebook
48
-
49
- #endif
@@ -1,5 +1,4 @@
1
1
  #pragma once
2
- #if defined(RCT_NEW_ARCH_ENABLED) || defined(ANDROID)
3
2
 
4
3
  #include <react/renderer/core/ShadowNodeFamily.h>
5
4
 
@@ -33,5 +32,3 @@ public:
33
32
 
34
33
  } // namespace react
35
34
  } // namespace facebook
36
-
37
- #endif
@@ -1,5 +1,4 @@
1
1
  #pragma once
2
- #if defined(RCT_NEW_ARCH_ENABLED) || defined(ANDROID)
3
2
 
4
3
  #include "MarkdownTextInputDecoratorShadowNode.h"
5
4
  #include <react/debug/react_native_assert.h>
@@ -16,5 +15,3 @@ public:
16
15
 
17
16
  } // namespace react
18
17
  } // namespace facebook
19
-
20
- #endif
@@ -1,5 +1,4 @@
1
1
  #pragma once
2
- #if defined(RCT_NEW_ARCH_ENABLED) || defined(ANDROID)
3
2
 
4
3
  #include <react/renderer/core/Props.h>
5
4
  #include <react/renderer/core/ShadowNode.h>
@@ -27,5 +26,3 @@ struct OwningShadowNodeFragment {
27
26
 
28
27
  } // namespace livemarkdown
29
28
  } // namespace expensify
30
-
31
- #endif
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.160",
3
+ "version": "0.1.162",
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",