I am writing a custom view for React Native iOS.
Basically, I have to make the text as large as possible (based on the presentation of the current view). I did this by overriding reactSetFrame and changing the frame. The only problem is that the view position is wrong, here is a screenshot:

It seems that the "layout manager" reacts to native, and it considers the views to be 0 in height.
Here is the code:
- (void)reactSetFrame:(CGRect)frame { [super reactSetFrame:frame]; NSLog(@"react set frame %@", NSStringFromCGRect(frame)); [self fitText:self.text]; } - (void)fitText:(NSString *)text {
basically, when changing the frame, I update the frame with the correct dimensions based on the transmitted text.
Log output is as follows:
2017-06-25 16:43:16.434 ABC[44836:6551225] react set frame {{0, 0}, {375, 0}} 2017-06-25 16:43:16.435 ABC[44836:6551225] new frame is {{0, 0}, {375, 69.197000000000017}} 2017-06-25 16:43:16.435 ABC[44836:6551225] react set frame {{0, 0}, {375, 0}} 2017-06-25 16:43:16.436 ABC[44836:6551225] new frame is {{0, 0}, {375, 85.996999999999986}}
I tried again calling reactSetFrame with a new frame, but it does not work. Is there a way to tell React Native that the view size has changed?