Just trying to save anyone else the time who stumbles across this, just dropped it into a RN 61.4 project, all the functions returned were some garbage.
Instead head over to react-native-device-info and use their memory functions. Optionally run the results through pretty-bytes and you have a few stats on memory usage.