
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-native-temp-storage
Advanced tools
simple package to store string value in native side for temporary, to be used after bundle reload.
Simple package to store data in native side for temporary. So it will be available after hot-reload, bundle restart, but not app restart
npm install react-native-temp-storage
or
yarn add react-native-temp-storage
npx pod-install
import { useState } from 'react';
import { StyleSheet, View, Text, Button } from 'react-native';
import * as TempStorage from 'react-native-temp-storage';
export default function App() {
const [result, setResult] = useState<string | undefined>();
return (
<View style={styles.container}>
<Text>Result: {result}</Text>
<Button
title="set Color Red"
onPress={() => TempStorage.setItem('color', 'Red')}
/>
<Button
title="set Taste sweet"
onPress={() => TempStorage.setItem('taste', 'Sweet')}
/>
<Button
title="set Color Blue"
onPress={() => TempStorage.setItem('color', 'Blue')}
/>
<Button
title="delete Color"
onPress={() => TempStorage.deleteItem('color')}
/>
<Button
title="delete Taste"
onPress={() => TempStorage.deleteItem('taste')}
/>
<Button
title="get Color"
onPress={() => TempStorage.getItem('color').then(setResult)}
/>
<Button
title="get Taste"
onPress={() => TempStorage.getItem('taste').then(setResult)}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
box: {
width: 60,
height: 60,
marginVertical: 20,
},
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
simple package to store string value in native side for temporary, to be used after bundle reload.
We found that react-native-temp-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.