old_contents: import React, { Component } from 'react';
  import { Animated, StyleSheet, Text, View } from 'react-native';
  import { RectButton, Swipeable } from 'react-native-gesture-handler';
  import Icon from 'react-native-vector-icons/MaterialIcons';
  
  const AnimatedIcon = Animated.createAnimatedComponent(Icon);
  
  export default class AppleStyleSwipeableRow extends Component {
    renderLeftActions = (progress, dragX) => {
      const scale = dragX.interpolate({
        inputRange: [0, 80],
        outputRange: [0, 1],
        extrapolate: 'clamp',
      });
      return (
        <RectButton style={styles.leftAction} onPress={this.close}>
          <AnimatedIcon
            name="archive"
            size={30}
            color="#fff"
            style={[styles.actionIcon, { transform: [{ scale }] }]}
          />
        </RectButton>
      );
    };
    renderRightActions = (progress, dragX) => {
      const scale = dragX.interpolate({
        inputRange: [-80, 0],
        outputRange: [1, 0],
        extrapolate: 'clamp',
      });
      return (
        <RectButton style={styles.rightAction} onPress={this.close}>
          <AnimatedIcon
            name="delete-forever"
            size={30}
            color="#fff"
            style={[styles.actionIcon, { transform: [{ scale }] }]}
          />
        </RectButton>
      );
    };
    updateRef = ref => {
      this._swipeableRow = ref;
    };
    close = () => {
      this._swipeableRow.close();
    };
    render() {
      const { children } = this.props;
      return (
        <Swipeable
          ref={this.updateRef}
          friction={2}
          leftThreshold={80}
          rightThreshold={40}
          renderLeftActions={this.renderLeftActions}
          renderRightActions={this.renderRightActions}>
          {children}
        </Swipeable>
      );
    }
  }
  
  const styles = StyleSheet.create({
    leftAction: {
      flex: 1,
      backgroundColor: '#388e3c',
      justifyContent: 'center',
    },
    actionIcon: {
      width: 30,
      marginHorizontal: 10,
    },
    rightAction: {
      alignItems: 'flex-end',
      backgroundColor: '#dd2c00',
      flex: 1,
      justifyContent: 'center',
    },
  });
new_contents: import React, { Component } from 'react';
  import { Animated, StyleSheet, Text, View } from 'react-native';
  import { RectButton, Swipeable } from 'react-native-gesture-handler';
  import { MaterialIcons } from '@expo/vector-icons';
  
  const AnimatedIcon = Animated.createAnimatedComponent(MaterialIcons);
  
  export default class AppleStyleSwipeableRow extends Component {
    renderLeftActions = (progress, dragX) => {
      const scale = dragX.interpolate({
        inputRange: [0, 80],
        outputRange: [0, 1],
        extrapolate: 'clamp',
      });
      return (
        <RectButton style={styles.leftAction} onPress={this.close}>
          <AnimatedIcon
            name="archive"
            size={30}
            color="#fff"
            style={[styles.actionIcon, { transform: [{ scale }] }]}
          />
        </RectButton>
      );
    };
    renderRightActions = (progress, dragX) => {
      const scale = dragX.interpolate({
        inputRange: [-80, 0],
        outputRange: [1, 0],
        extrapolate: 'clamp',
      });
      return (
        <RectButton style={styles.rightAction} onPress={this.close}>
          <AnimatedIcon
            name="delete-forever"
            size={30}
            color="#fff"
            style={[styles.actionIcon, { transform: [{ scale }] }]}
          />
        </RectButton>
      );
    };
    updateRef = ref => {
      this._swipeableRow = ref;
    };
    close = () => {
      this._swipeableRow.close();
    };
    render() {
      const { children } = this.props;
      return (
        <Swipeable
          ref={this.updateRef}
          friction={2}
          leftThreshold={80}
          rightThreshold={40}
          renderLeftActions={this.renderLeftActions}
          renderRightActions={this.renderRightActions}>
          {children}
        </Swipeable>
      );
    }
  }
  
  const styles = StyleSheet.create({
    leftAction: {
      flex: 1,
      backgroundColor: '#388e3c',
      justifyContent: 'center',
    },
    actionIcon: {
      width: 30,
      marginHorizontal: 10,
    },
    rightAction: {
      alignItems: 'flex-end',
      backgroundColor: '#dd2c00',
      flex: 1,
      justifyContent: 'center',
    },
  });
  
subject: Update GmailStyleSwipeableRow.js