Skip to content

Commit

Permalink
- Added support for RN64
Browse files Browse the repository at this point in the history
  • Loading branch information
prscms committed Jul 5, 2021
1 parent fd19fd8 commit 677934c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
9 changes: 1 addition & 8 deletions Example/ios/ExampleTests/ExampleTests.m
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>

Expand Down Expand Up @@ -59,7 +52,7 @@ - (void)testRendersWelcomeScreen
return NO;
}];
}

#ifdef DEBUG
RCTSetLogFunction(RCTDefaultLogFunction);
#endif
Expand Down
4 changes: 2 additions & 2 deletions ios/RNStyledDialogs.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ -(void)onCancellable {
}

if ([input intValue] == 1) {
[alertVC addTextField:^(UITextField * _Nullable textField) {
[alertVC addTextFieldWithTextField:nil :^(UITextField * _Nullable textField) {
inputField = textField;
textField.placeholder = placeholder;
textField.text=inputValue;
textField.keyboardType = keyboardType;
textField.attributedPlaceholder = str;
[textField setTextColor:[UIColor blackColor]];
[textField setTextColor:[UIColor blackColor]];
}];
}

Expand Down
2 changes: 1 addition & 1 deletion ios/RNStyledDialogs.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ Pod::Spec.new do |s|

s.preserve_paths = 'LICENSE', 'package.json'
s.source_files = '**/*.{h,m}'
s.dependency 'React'
s.dependency 'React-Core'
s.dependency 'PMAlertController'
end

0 comments on commit 677934c

Please sign in to comment.