old_contents: /* @flow strict-local */
  import { NativeModules, Platform } from 'react-native';
  import SafariView from 'react-native-safari-view';
  
  export default (url: string): void => {
    if (Platform.OS === 'ios') {
      SafariView.show({ url });
    } else {
      NativeModules.CustomTabsAndroid.openURL(url);
    }
  };
  
new_contents: /* @flow strict-local */
  import { NativeModules, Platform } from 'react-native';
  import SafariView from 'react-native-safari-view';
  
  export default (url: string): void => {
    if (Platform.OS === 'ios') {
      SafariView.show({ url: encodeURI(url) });
    } else {
      NativeModules.CustomTabsAndroid.openURL(url);
    }
  };
  
subject: Fix crash on following a link with non-ASCII characters.