Releases: jpalumickas/react-native-activestorage
Releases · jpalumickas/react-native-activestorage
v2.0.0
v1.0.0
v1 Release
- TypeScript support
- React Hooks
- Rewrite all package
Upgrade notes
1. Add Active Storage provider
import { ActiveStorageProvider } from 'react-native-activestorage'
const App = () => (
<ActiveStorageProvider host="https://localhost:4000">
<Navigation />
</ActiveStorageProvider>
)
You can provide mountPath
if needed
2. Change DirectUpload import
from
import DirectUpload from 'react-native-activestorage'
to
import { DirectUpload } from 'react-native-activestorage'
3. Changed directUpload
function callback
from
directUpload({ file, directUploadsUrl }, onStatusChange);
to
directUpload({ file, directUploadsUrl, onStatusChange })
v0.3.0
- Allow to specify headers when creating blob record
v0.2.0
- Allow specifying metadata
- Show total and count in progress
v0.1.0
Add Readme