MCPcopy Create free account
hub / github.com/archriss/react-native-network-component / constructor

Method constructor

index.js:12–20  ·  view source on GitHub ↗
(props, options)

Source from the content-addressed store, hash-verified

10export default class NetworkComponent extends Component {
11
12 constructor (props, options) {
13 super(props, options);
14
15 this.options = {
16 ...defaultOptions,
17 ...options
18 };
19 this.handleState = this.handleState.bind(this);
20 }
21
22 get _fetchFunc () {
23 return this[this.options.fetchFunc];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected