Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
numandev1 committed Dec 21, 2021
1 parent 5595259 commit 92ef770
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: nomi9995 # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: nomi9995
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand All @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: http://buymeacoffee.com/numan.dev # Replace with a single custom sponsorship URL
custom: http://buymeacoffee.com/numan.dev
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ Add the Compressor plugin to your Expo config (`app.json`, `app.config.json` or
}
```

Finally, compile the mods:

```
expo prebuild
```

To apply the changes, build a new binary with EAS:

```
eas build
```

### Automatic linking (for React Native >= 0.60 only)

Automatic linking is supported for both `Android` and `IOS`
Expand Down
4 changes: 3 additions & 1 deletion example/src/Screens/Video/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ export default function App() {
sourceVideo,
{
compressionMethod: 'auto',
minimumFileSizeForCompress: 2,
minimumFileSizeForCompress: 5,
maxSize: 1000,
},
(progress) => {
if (backgroundMode) {
Expand All @@ -123,6 +124,7 @@ export default function App() {
}
}
);
console.log({ sourceVideo, dstUrl }, 'biss');
setCompressedVideo(dstUrl);
setCompressingProgress(0);
};
Expand Down

0 comments on commit 92ef770

Please sign in to comment.