getReactNativeTransformer = () => {
  try {
    return require("@react-native/metro-babel-transformer");
  } catch (error) {
    return require("metro-react-native-babel-transformer");
  }
}
`metro-react-native-babel-transformer` has recently been migrated to the React Native
repository and published under the `@react-native/metro-babel-transformer` name.
The new package is default on `react-native` >= 0.73.0, so we need to conditionally load it.