hunk.code_window:   display: 'block',
     position: 'relative',
     marginBottom: spacing[2],
     borderBottom: `1px solid ${theme.border.default}`,
     marginLeft: spacing[5] + spacing[0.5],
     marginRight: -spacing[5],
     paddingBottom: spacing[2],
     userSelect: 'none',
   });
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:   marginRight: -spacing[4],
  
hunk.file_path: docs/ui/components/Sidebar/SidebarTitle.tsx
hunk.type: replace
file: import { Platform, UnavailabilityError } from 'expo-modules-core';
  import React from 'react';
  import { StyleSheet, } from 'react-native';
  import ExpoImage, { ExpoImageModule } from './ExpoImage';
  const DEFAULT_RESIZE_MODE = 'cover';
  export default class Image extends React.Component {
      static getDerivedStateFromProps(props) {
          return {
              onLoad: props.onLoadEnd
                  ? (e) => {
                      if (props.onLoad) {
                          props.onLoad(e);
                      }
                      props.onLoadEnd();
                  }
                  : props.onLoad,
              onError: props.onLoadEnd
                  ? (e) => {
                      if (props.onError) {
                          props.onError(e);
                      }
                      props.onLoadEnd();
                  }
                  : props.onError,
          };
      }
      /**
       * **Available on @Android only.** Caching the image that can be later used in ImageView
       * @return an empty promise.
       */
      static async prefetch(url) {
          if (Platform.OS !== 'android') {
              throw new UnavailabilityError('Image', 'prefetch');
          }
          return await ExpoImageModule.prefetch(url);
      }
      state = {
          onLoad: undefined,
          onError: undefined,
      };
      render() {
          const { style, resizeMode: resizeModeProp, ...restProps } = this.props;
          const { resizeMode: resizeModeStyle, ...restStyle } = StyleSheet.flatten([style]) || {};
          const resizeMode = resizeModeProp ?? resizeModeStyle ?? DEFAULT_RESIZE_MODE;
          return (React.createElement(ExpoImage, { ...restProps, style: restStyle, resizeMode: resizeMode, onLoad: this.state.onLoad, onError: this.state.onError }));
      }
  }
  //# sourceMappingURL=Image.js.map