Skip to content

Commit b2c28b8

Browse files
Rohit MishraRohit Mishra
authored andcommitted
updated the doc file
1 parent 18fcdf5 commit b2c28b8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

js-sdk-reference/index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1 class="page-title">Contentstack - Javascript SDK</h1>
3333
<h2><a id="JavaScript_SDK_for_Contentstack_1"></a>JavaScript SDK for Contentstack</h2>
3434
<p>Contentstack is a headless CMS with an API-first approach. It is a CMS that developers can use to build powerful cross-platform applications in their favorite languages. Build your application frontend, and Contentstack will take care of the rest. <a href="https://www.contentstack.com/">Read More</a>.</p>
3535
<p>Contentstack provides JavaScript SDK to build application on top of JavaScript. Given below is the detailed guide and helpful resources to get started with our JavaScript SDK.</p>
36-
<p>The JavaScript SDK can also be used to create Node.js and React native applications.</p>
36+
<p>The JavaScript SDK can also be used to create Node.js, React Native and NativeScript applications.</p>
3737
<h3><a id="Prerequisite_9"></a>Prerequisite</h3>
3838
<p>You need Node.js version 4.4.7 or later installed to use the Contentstack JavaScript SDK.</p>
3939
<h3><a id="Setup_and_Installation_13"></a>Setup and Installation</h3>
@@ -64,6 +64,16 @@ <h4><a id="For_React_Native_39"></a>For React Native</h4>
6464
<p>To initialize the SDK, you will need to specify the API Key, Access Token, and Environment Name of your stack.</p>
6565
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("api_key", "access_token", "environment_name");
6666
</code></pre>
67+
<h4><a id="For_React_Native_39"></a>For NativeScript</h4>
68+
<p>NativeScript uses the Javascript SDK to create apps. To use the JavaScript SDK, download it from <a href="https://www.contentstack.com/docs/platforms/javascript-browser/javascript_sdk_latest">here</a>, OR install ist via npm:</p>
69+
<pre class="prettyprint"><code>npm -i contentstack
70+
</code></pre>
71+
<p>To import the SDK in your project, use the following command:</p>
72+
<pre class="prettyprint" class="prettyprint"><code>import contentstack from `contentstack/native-script`
73+
</code></pre>
74+
<p>To initialize the SDK, you will need to specify the API Key, Access Token, and Environment Name of your stack.</p>
75+
<pre class="prettyprint"><code>const Stack = Contentstack.Stack("api_key", "access_token", "environment_name");
76+
</code></pre>
6777
<h3><a id="Key_Concepts_for_using_Contentstack_54"></a>Key Concepts for using Contentstack</h3>
6878
<h4><a id="Stack_56"></a>Stack</h4>
6979
<p>A stack is like a container that holds the content of your app. Learn more about <a href="https://www.contentstack.com/docs/guide/stack">Stacks</a>.</p>

0 commit comments

Comments
 (0)