Skip to content

Commit

Permalink
⭐️ Impl: RNI_UTILITIES_HEADER
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Dec 16, 2024
1 parent c9ec8c0 commit f9285ed
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ios/Private/RNIHeaderUtils.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#pragma once

/// Based on `PR-#121` by: `coolsoftwaretyler`
/// Link: https://github.com/dominicstop/react-native-ios-context-menu/pull/121
///
#if __has_include(<react_native_ios_utilities/react-native-ios-utilities.h>)
#define RNI_UTILITIES_HEADER(header) <react_native_ios_utilities/header>

#elif __has_include(<react-native-ios-utilities/react-native-ios-utilities.h>)
#define RNI_UTILITIES_HEADER(header) <react-native-ios-utilities/header>

#else
#define RNI_UTILITIES_HEADER(header) header
#endif

0 comments on commit f9285ed

Please sign in to comment.