From 9392639061bab6eed4dd9445992496bf8e52a303 Mon Sep 17 00:00:00 2001 From: Ananthu Kanive Date: Tue, 20 Jul 2021 20:59:29 +0530 Subject: [PATCH 1/2] docs(story): fix height of "basic method story" --- docs/stories/method.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/stories/method.js b/docs/stories/method.js index 09ed1a6..a4624e5 100644 --- a/docs/stories/method.js +++ b/docs/stories/method.js @@ -3,10 +3,12 @@ import { WebView } from 'react-native-webview'; import { text } from '@storybook/addon-knobs'; export const basic = () => ( - +
+ +
); From f5189281d20bf4d1a938480ef662535055065007 Mon Sep 17 00:00:00 2001 From: Ananthu Kanive Date: Tue, 20 Jul 2021 21:00:13 +0530 Subject: [PATCH 2/2] docs(story): customize message passing from within the web-webview --- docs/stories/index.js | 2 +- docs/stories/onMessage.html | 7 ++++--- docs/stories/uri.js | 20 +++++++++++++++----- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/docs/stories/index.js b/docs/stories/index.js index e39f4d0..9010830 100644 --- a/docs/stories/index.js +++ b/docs/stories/index.js @@ -7,6 +7,6 @@ import { storiesOf } from '@storybook/react'; storiesOf('HTML source', module).add('basic', html.basic); -storiesOf('URI source', module).add('basic', uri.basic).add('onMessage', uri.onMessage); +storiesOf('URI source', module).add('basic', uri.basic).add('post message', uri.onMessage); storiesOf('With method', module).add('basic', method.basic); diff --git a/docs/stories/onMessage.html b/docs/stories/onMessage.html index e48f079..452f18e 100644 --- a/docs/stories/onMessage.html +++ b/docs/stories/onMessage.html @@ -1,6 +1,8 @@

Hello world!

+ +