diff --git a/docs/api/native-image.md b/docs/api/native-image.md index 03b1a309113e..467940c4f74e 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -115,7 +115,9 @@ Creates a new `NativeImage` instance from `dataUrl`. The following methods are available on instances of `nativeImage` ```javascript -var image = nativeImage.createFromPath('/Users/somebody/images/icon.png') +var NativeImage = require('native-image'); + +var image = NativeImage.createFromPath('/Users/somebody/images/icon.png'); ``` ### `image.toPng()`