
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-choose-image-button
Advanced tools
Wrappable conponent that allows for native bindings of choosing images from library or camera
Installation
npm install react-native-choose-image-button --save
This library uses the @expo/react-native-action-sheet dependency so first wrap your app with the ActionSheetProvider class which serves as a container for
calling the native action popup that shows the options 'Take photo', 'Choose Image' etc...
import { ActionSheetProvider, connectActionSheet } from '@expo/react-native-action-sheet';
export default class App extends React.Component {
render() {
return (
<ActionSheetProvider>
<RootApp />
</ActionSheetProvider>
);
}
}
Then wrap your target button with the choose image button:
import Icon from 'react-native-vector-icons/Ionicons';
import ChooseImageButton from 'react-native-choose-image-button';
const UploadButton = () => {
return(
<ChooseImageButton
onLoading={someFunction}
onComplete={someFunction}
style={someStyle}>
<Icon name="ios-add"/>
</ChooseImageButton>
);
}
| Prop | Description |
|---|---|
| style | An style object to apply styles to the component |
| onLoading | The function that is called when the image is buffering and loading |
| onComplete | The function that receives the resultant base64 image |
FAQs
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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.