Skip to content

Easy to create project with lots of functionalities. No library installation or linking needed.

License

Notifications You must be signed in to change notification settings

vishaljadav24/react-native-base-template

Repository files navigation

React Native Base Template

Template for create react native project(Android and iOS) with below functionalities.

What's in the template?

How to use?

react-native init ProjectName --template https://github.com/vishaljadav24/react-native-base-template

Use Axios Wrapper

import {APIRequest} from "src/api";

 new APIRequest.Builder()
            .post()
            .setReqId({API_REQUEST_ID})
            .reqURL("API_END_POINT")
            .jsonParams({BODY_PARAMS})
            .response(this.onResponse)
            .error(this.onError)
            .build()
            .doRequest();

onResponse = (response, reqId) => {
    // handle api response by request id
}

onError = (error, reqId) => {
    // handle api error by request id
}

About

Easy to create project with lots of functionalities. No library installation or linking needed.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published