@skele/classic
Version:
Skele is an architectural framework that assists with building data-driven apps with React or React Native.
20 lines (12 loc) • 466 B
Markdown
# Read
Reads enable dynamic loading of content, usually by fetching data from a remote server using an HTTP request.
## `register(uri, read)`
Registers a custom read to a specific URI or URI scheme.
### Usage
```javascript
import { read } from '@skele/classic'
import navigationRead from './reads/navigation'
import articleRead from './reads/article'
read.register('x-myapp://navigation', navigationRead)
read.register(/x-myapp:\/\/article/, articleRead)
```