react-native/React
Eric Vicenti 65513e501a Bug fix for nil TVView on pop
Summary:
Explain the **motivation** for making this change. What existing problem does the pull request solve?

This change is required when you try to set a focus on a view that doesn't exist and thus cannot be focused. In my specific use case, this occurred when trying to set a focus on a list item in a setInterval when the View (with the specific list item) had been popped. The while loop ran infinitely (eventually freezing the app) since the rootView doesn't exist. This adds that check and breaks out if so.

All obj-c tests ran successfully.

dlowder-salesforce
Closes https://github.com/facebook/react-native/pull/12073

Differential Revision: D4468989

Pulled By: ericvicenti

fbshipit-source-id: 7926c887035722c983c41cb6b6d9df567010c2ee
2017-01-26 09:43:32 -08:00
..
Base The warning 'cannot calculate shadow efficiently' is not a warning anymore 2017-01-25 12:28:50 -08:00
Executors Add option to start sampling profiler on app launch 2017-01-25 14:43:30 -08:00
Modules Revert D4450924: Expose StatusBar height on iOS 2017-01-25 17:59:30 -08:00
Profiler Disable RCTPerfMonitor on new bridge 2017-01-23 10:13:31 -08:00
React.xcodeproj Adding support in the new RN bridge on iOS 2017-01-10 11:28:44 -08:00
Views Bug fix for nil TVView on pop 2017-01-26 09:43:32 -08:00