Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,20 @@ import DocumentScannerAndroid from "react-native-documentscanner-android";

### Manual capture

- Get the component ref
- Import `capture` method

```tsx
import { capture } from 'react-native-documentscanner-android';

```

- Then
- Then use it

```ts
scanner.capture();
<Button
title="Manual capture"
onPress={() => capture()}
/>
```

### Returned Image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
public class DocumentScannerAndroidPackage implements ReactPackage {
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
return Collections.emptyList();
return Arrays.<NativeModule>asList(
new DocumentScannerModule(reactContext)
);
}

@Override
Expand Down