'AWS Cloud 9 clear cache and used Memory

I am using free tier AWS cloud 9 environment. After using it for a while it started showing that Memory is almost full. But I see cache has taken most of the memories. Do someone knows how to clear cache and free up some space? Or should I upgrade to paid version? I am attaching my memory usage. image



Solution 1:[1]

sync; echo 3 > /proc/sys/vm/drop_caches

Solution 2:[2]

instead of using the following code.

I18nManager.forceRTL(true)
I18nManager.allowRTL(true)

fix for this issue is to use direction:'rtl' in the style of Root level component. sample working code demo https://snack.expo.dev/PIIGNx70v

sample code

import * as React from 'react';
import { Button, View } from 'react-native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from '@react-navigation/native';

function HomeScreen({ navigation }) {
  return (
    <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
      <Button onPress={navigation.openDrawer} title="Open drawer" />
    </View>
  );
}

const Drawer = createDrawerNavigator();

export default function App() {
  return (
    <View style={{ flex: 1, direction: 'rtl' }}>
      <NavigationContainer>
        <Drawer.Navigator drawerPosition="right" initialRouteName="Home">
          <Drawer.Screen name="Home" component={HomeScreen} />
        </Drawer.Navigator>
      </NavigationContainer>
    </View>
  );
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Suraj Rao
Solution 2 shubham jha