From 2c3a6ab5b2ec82e87d37679b3e59861c90accc97 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Thu, 2 Apr 2020 12:47:46 -0700 Subject: [PATCH] Fix crash caused by trying to present view controller twice Summary: Changelog: [Internal] `_viewController` was being presented twice causing following exception ``` 'Application tried to present modally an active controller (); } +- (void)prepareForRecycle +{ + [super prepareForRecycle]; + _state.reset(); + _isPresented = NO; +} + - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &)oldProps { const auto &newProps = *std::static_pointer_cast(props);