Skip to content

Commit

Permalink
fix: missing native prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
BANG88 committed Feb 24, 2018
1 parent 62a2f89 commit 243b7c9
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 87 deletions.
26 changes: 13 additions & 13 deletions docs/classes/merryphotoview.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ <h3>processor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L110">index.tsx:110</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L113">index.tsx:113</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -278,7 +278,7 @@ <h3>render</h3>
<aside class="tsd-sources">
<p>Overrides Component.render</p>
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L128">index.tsx:128</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L131">index.tsx:131</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span>
Expand Down Expand Up @@ -626,7 +626,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> default<wbr>Props</h3>
<div class="tsd-signature tsd-kind-icon">default<wbr>Props<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L102">index.tsx:102</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L105">index.tsx:105</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
Expand All @@ -635,7 +635,7 @@ <h3>visible</h3>
<div class="tsd-signature tsd-kind-icon">visible<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> =&nbsp;false</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L103">index.tsx:103</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L106">index.tsx:106</a></li>
</ul>
</aside>
</section>
Expand All @@ -646,7 +646,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> prop<wbr>Types</h3>
<div class="tsd-signature tsd-kind-icon">prop<wbr>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L65">index.tsx:65</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L67">index.tsx:67</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
Expand All @@ -655,7 +655,7 @@ <h3>data</h3>
<div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span><span class="tsd-signature-symbol"> =&nbsp;PropTypes.arrayOf(PropTypes.shape({source:Platform.OS &#x3D;&#x3D;&#x3D; &quot;ios&quot;? ImageSourcePropType: PropTypes.oneOfType([PropTypes.shape({uri: PropTypes.string,headers: PropTypes.objectOf(PropTypes.string)}),// Opaque type returned by require(&#x27;./image.jpg&#x27;)PropTypes.number,// Multiple sourcesPropTypes.arrayOf(PropTypes.shape({uri: PropTypes.string,width: PropTypes.number,height: PropTypes.number}))]),title: PropTypes.string,summary: PropTypes.string,titleColor: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),summaryColor: PropTypes.oneOfType([PropTypes.string, PropTypes.number])})).isRequired</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L66">index.tsx:66</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L68">index.tsx:68</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand Down Expand Up @@ -698,7 +698,7 @@ <h3>hide<wbr>Close<wbr>Button</h3>
<div class="tsd-signature tsd-kind-icon">hide<wbr>Close<wbr>Button<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Requireable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;PropTypes.bool</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L96">index.tsx:96</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L98">index.tsx:98</a></li>
</ul>
</aside>
</section>
Expand All @@ -708,7 +708,7 @@ <h3>hide<wbr>Share<wbr>Button</h3>
<div class="tsd-signature tsd-kind-icon">hide<wbr>Share<wbr>Button<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Requireable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;PropTypes.bool</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L97">index.tsx:97</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L99">index.tsx:99</a></li>
</ul>
</aside>
</section>
Expand All @@ -718,7 +718,7 @@ <h3>hide<wbr>Status<wbr>Bar</h3>
<div class="tsd-signature tsd-kind-icon">hide<wbr>Status<wbr>Bar<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Requireable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;PropTypes.bool</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L95">index.tsx:95</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L97">index.tsx:97</a></li>
</ul>
</aside>
</section>
Expand All @@ -728,7 +728,7 @@ <h3>initial</h3>
<div class="tsd-signature tsd-kind-icon">initial<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span><span class="tsd-signature-symbol"> =&nbsp;PropTypes.number.isRequired</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L94">index.tsx:94</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L96">index.tsx:96</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand Down Expand Up @@ -771,7 +771,7 @@ <h3>on<wbr>Dismiss</h3>
<div class="tsd-signature tsd-kind-icon">on<wbr>Dismiss<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span><span class="tsd-signature-symbol"> =&nbsp;PropTypes.func.isRequired</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L98">index.tsx:98</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L100">index.tsx:100</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand Down Expand Up @@ -814,7 +814,7 @@ <h3>share<wbr>Text</h3>
<div class="tsd-signature tsd-kind-icon">share<wbr>Text<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Requireable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;PropTypes.string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L99">index.tsx:99</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L101">index.tsx:101</a></li>
</ul>
</aside>
</section>
Expand All @@ -824,7 +824,7 @@ <h3>visible</h3>
<div class="tsd-signature tsd-kind-icon">visible<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Requireable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;PropTypes.bool</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L93">index.tsx:93</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L95">index.tsx:95</a></li>
</ul>
</aside>
</section>
Expand Down
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ <h3><span class="tsd-flag ts-flagConst">Const</span> Image<wbr>Source<wbr>Prop<w
<div class="tsd-signature tsd-kind-icon">Image<wbr>Source<wbr>Prop<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;require(&quot;react-native/Libraries/Image/ImageSourcePropType&quot;)</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L11">index.tsx:11</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L13">index.tsx:13</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-is-not-exported">
<a name="rnmerryphotoview" class="tsd-anchor"></a>
<h3>RNMerry<wbr>Photo<wbr>View</h3>
<div class="tsd-signature tsd-kind-icon">RNMerry<wbr>Photo<wbr>View<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ComponentClass</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;requireNativeComponent(&quot;MerryPhotoView&quot;, MerryPhotoView)</span></div>
<div class="tsd-signature tsd-kind-icon">RNMerry<wbr>Photo<wbr>View<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ComponentClass</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;requireNativeComponent(&quot;MerryPhotoView&quot;, MerryPhotoView)</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L157">index.tsx:157</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L160">index.tsx:160</a></li>
</ul>
</aside>
</section>
Expand All @@ -117,7 +117,7 @@ <h3><span class="tsd-flag ts-flagConst">Const</span> resolve<wbr>Asset<wbr>Sourc
<div class="tsd-signature tsd-kind-icon">resolve<wbr>Asset<wbr>Source<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;require(&quot;react-native/Libraries/Image/resolveAssetSource&quot;)</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L10">index.tsx:10</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L12">index.tsx:12</a></li>
</ul>
</aside>
</section>
Expand Down
16 changes: 8 additions & 8 deletions docs/interfaces/merryphotoviewporps.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h3>data</h3>
<div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <a href="photo.html" class="tsd-signature-type">Photo</a><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L32">index.tsx:32</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L34">index.tsx:34</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -115,7 +115,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> hide<wbr>Close<wbr>Bu
<div class="tsd-signature tsd-kind-icon">hide<wbr>Close<wbr>Button<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">false</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L44">index.tsx:44</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L46">index.tsx:46</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -130,7 +130,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> hide<wbr>Share<wbr>Bu
<div class="tsd-signature tsd-kind-icon">hide<wbr>Share<wbr>Button<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">false</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L48">index.tsx:48</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L50">index.tsx:50</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -145,7 +145,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> hide<wbr>Status<wbr>B
<div class="tsd-signature tsd-kind-icon">hide<wbr>Status<wbr>Bar<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">false</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L40">index.tsx:40</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L42">index.tsx:42</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -160,7 +160,7 @@ <h3>initial</h3>
<div class="tsd-signature tsd-kind-icon">initial<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L36">index.tsx:36</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L38">index.tsx:38</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -175,7 +175,7 @@ <h3>on<wbr>Dismiss</h3>
<div class="tsd-signature tsd-kind-icon">on<wbr>Dismiss<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L61">index.tsx:61</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L63">index.tsx:63</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -205,7 +205,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> share<wbr>Text</h3>
<div class="tsd-signature tsd-kind-icon">share<wbr>Text<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L53">index.tsx:53</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L55">index.tsx:55</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -221,7 +221,7 @@ <h3>visible</h3>
<div class="tsd-signature tsd-kind-icon">visible<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/1a527eb/index.tsx#L57">index.tsx:57</a></li>
<li>Defined in <a href="https://github.com/merryjs/photo-viewer/blob/62a2f89/index.tsx#L59">index.tsx:59</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit 243b7c9

Please sign in to comment.