-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
My Obj-C Code:
#import <UIKit/UIKit.h>
#import "RCTViewManager.h"
@interface RCTSearchBarTest : RCTViewManager
@end
@implementation RCTSearchBarTest
RCT_EXPORT_MODULE()
- (UISearchBar *)view
{
return [[UISearchBar alloc] init];
}
@end
My js code:
var {requireNativeComponent} = React;
var RCTSearchBarTest = requireNativeComponent('RCTSearchBarTest', null);
var App = React.createClass({
render: function() {
<View>
<RCTSearchBarTest />
</View>
}
})
I learned it from React-Native's document: https://facebook.github.io/react-native/docs/nativecomponentsios.html
I tried Reveal, the UISearchBar
is exist, but not displayed.
After I add code [searchBar setFrame:CGRectMake(0, 0, 375, 44)];
, it works, but I lookup from React-Native's code I didn't found anything like this.
Actual code: CoffeeScript, Objective-C
Is anything I missed?
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.