Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 355b02e

Browse files
authored
correct javascript code sample
importing the camera module returns the camera module
1 parent 211176a commit 355b02e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core-concepts/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ npm i tns-platform-declarations --save-dev
6060
Once the plugin you need is installed, you can start using it in your project. Note that each plugin might have its configuration that needs to be satisfied so always check carefully the plugin's documentation and the README file. The below code snippet demonstrated the basic usage of **nativescript-camera** plugin.
6161

6262
```JavaScript
63-
const cameraModule = require("nativescript-camera"); // Requiring the plugin module
63+
const camera = require("nativescript-camera"); // Requiring the plugin module
6464
camera.requestPermissions();
6565

6666
// Or import only a specific class/method/property of the plugin

0 commit comments

Comments
 (0)