Skip to content

Commit

Permalink
Fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi committed Aug 23, 2023
1 parent 9bb85c9 commit b24027b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -1579,8 +1579,6 @@ function InternalTextInput(props: Props): React.Node {

let style = flattenStyle(props.style);

let style = flattenStyle(props.style);

if (Platform.OS === 'ios' || Platform.OS === 'macos') {
// [macOS]
const RCTTextInputView =
Expand Down
6 changes: 5 additions & 1 deletion React/Base/RCTBundleURLProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ RCT_EXTERN const NSUInteger kRCTBundleURLProviderDefaultPort;
RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed);
#endif

extern NSString *const kRCTPlatformName; // [macOS]
#if !TARGET_OS_OSX // [macOS]
static NSString *const kRCTPlatformName = @"ios";
#else // [macOS
static NSString *const kRCTPlatformName = @"macos";
#endif // macOS] // [macOS]

@interface RCTBundleURLProvider : NSObject

Expand Down
6 changes: 1 addition & 5 deletions React/Base/RCTBundleURLProvider.mm
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed)
kRCTAllowPackagerAccess = allowed;
}
#endif
#if !TARGET_OS_OSX // [macOS]
static NSString *const kRCTPlatformName = @"ios";
#else // [macOS
static NSString *const kRCTPlatformName = @"macos";
#endif // macOS]

static NSString *const kRCTPackagerSchemeKey = @"RCT_packager_scheme";
static NSString *const kRCTJsLocationKey = @"RCT_jsLocation";
static NSString *const kRCTEnableDevKey = @"RCT_enableDev";
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@
serve-static "^1.13.1"
ws "^7.5.1"

"@react-native-community/cli-tools@10.1.1", "@react-native-community/cli-tools@^10.1.1":
"@react-native-community/cli-tools@^10.1.1":
version "10.1.1"
resolved "https://registry.yarnpkg.com/@react-native-community/cli-tools/-/cli-tools-10.1.1.tgz#fa66e509c0d3faa31f7bb87ed7d42ad63f368ddd"
integrity sha512-+FlwOnZBV+ailEzXjcD8afY2ogFEBeHOw/8+XXzMgPaquU2Zly9B+8W089tnnohO3yfiQiZqkQlElP423MY74g==
Expand Down

0 comments on commit b24027b

Please sign in to comment.