Skip to content

Commit

Permalink
Add #ifdef for imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Oct 21, 2024
1 parent 0d57eeb commit 5675e04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apple/MarkdownTextInputDecoratorView.mm
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#import <React/RCTUITextField.h>
#import <React/RCTUITextView.h>
#import "react_native_assert.h"

#ifdef RCT_NEW_ARCH_ENABLED
#import <React/RCTTextInputComponentView.h>
#else
#import <React/RCTBaseTextInputView.h>
#import "react_native_assert.h"
#endif

#import <RNLiveMarkdown/MarkdownLayoutManager.h>
#import <RNLiveMarkdown/MarkdownTextInputDecoratorView.h>
Expand Down

0 comments on commit 5675e04

Please sign in to comment.