React Native JS Wrapper
Budget: $30 – $250 USD
im using react-native-firebase npm package like this:
import firestore from "@react-native-firebase/firestore";
i need you to write wrapper that will keep the firestore functionality as it is and will not harm it.
the only job of the wrapper is to console log the time took for async firestore request to be done/evaluated.
i will be able to use the wrapper by just changing the import:
import firestore from "path/to/wrapper";
and no other code should be change, my firebase calls will remain the same in my project and will work the same.
note:
log the time took for async request to complete, such as:
firebase().Doc("x").get()
do not log any other NON async request such as:
firebase().Doc("x")
note2:
for async request the wrapper will return promise, (the same way the original firebase lib behaves)
for NON async request the wrapper will return some object, (the same way the original firebase lib behaves)
untested solutions will not be approved and i will request to terminated the contract for who will send untested solution
import firestore from "@react-native-firebase/firestore";
i need you to write wrapper that will keep the firestore functionality as it is and will not harm it.
the only job of the wrapper is to console log the time took for async firestore request to be done/evaluated.
i will be able to use the wrapper by just changing the import:
import firestore from "path/to/wrapper";
and no other code should be change, my firebase calls will remain the same in my project and will work the same.
note:
log the time took for async request to complete, such as:
firebase().Doc("x").get()
do not log any other NON async request such as:
firebase().Doc("x")
note2:
for async request the wrapper will return promise, (the same way the original firebase lib behaves)
for NON async request the wrapper will return some object, (the same way the original firebase lib behaves)
untested solutions will not be approved and i will request to terminated the contract for who will send untested solution