react-native-spritz
react-native-spritz is a react native library for Spritz fast reading component. See spritz.com
Installation
First
npm install react-native-text-size
Then add
'RNTextSize', :path =>'../node_modules/react-native-text-size/ios/RNTextSize.podspec'
into your Podfile
The last thing to do is
npm install react-native-spritz
Usage
<Spritz baseUrl='add url here' selectorApiAccessToken='add access token' noSelectorBaseUrl='add no selector base url' noSelectorApiKey='add api-key' wpm=200 onWpmIndicatorPress= {} html='add html here' url='add url here' fullSize=false readFromClipboard=true/>
Documentation
Property | Type | Description |
---|---|---|
baseUrl | string | Server base URL which parsing webisites with selectors |
noSelectorBaseUrl | string | Server base URL which parsing webisites without selectors |
noSelectorApiKey | string | Api-key for using services on noSelectorBaseUrl server |
selectorApiAccessToken | string | Access token for using services on baseUrl server |
wpm | number | Current wpm value |
onWpmIndicatorPress | Function | is called when wpm label clicked on |
html | string | HTML content which can be Spritzed |
url | string | The address of the page whose content can be Spritzed |
fullSize | boolean | Support fullsize view in landscape mode |
readFromClipboard | boolean | Copied content from a website that can be Spritzed |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.