Closed austin43 closed 1 year ago
Redirect warnings for should only pop up if redirect is actually passed to the component.
I fixed it because it was confusing users, and is not expected behavior.
Compare this to expo-router without the fix, and note that the warning does not pop up simply by importing Screen from expo-router.
Duplicate of https://github.com/expo/router/pull/859, https://github.com/expo/expo/pull/23932
Motivation
Redirect warnings for should only pop up if redirect is actually passed to the component.
Execution
I fixed it because it was confusing users, and is not expected behavior.
Test Plan
Compare this to expo-router without the fix, and note that the warning does not pop up simply by importing Screen from expo-router.