Skip to content

Instantly share code, notes, and snippets.

@sbugert
Created December 4, 2015 12:01
Show Gist options
  • Save sbugert/cc938b372c33315ce51b to your computer and use it in GitHub Desktop.
Save sbugert/cc938b372c33315ce51b to your computer and use it in GitHub Desktop.
Bring View to front
#import "RCTViewManager.h"
@interface ZPosViewManager : RCTViewManager
@end
#import "ZPosViewManager.h"
#import "RCTBridge.h"
#import "RCTView.h"
@implementation ZPosViewManager
RCT_EXPORT_MODULE();
- (UIView *)view
{
RCTView * zView;
zView = [[RCTView alloc] init];
zView.layer.zPosition = MAXFLOAT;
return zView;
}
@end
@asimparvez91
Copy link

Hey man,
It's me asim. This code has worked! Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment