From 2c6210cf9c6487d812010102edd789952dba0dde Mon Sep 17 00:00:00 2001 From: Jessica Lord Date: Sun, 30 Aug 2015 20:52:37 -0700 Subject: [PATCH] Update code example --- docs/api/native-image.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()`