get call log in react native with filter android

Solutions on MaxInterview for get call log in react native with filter android by the best coders in the world

showing results for - "get call log in react native with filter android"
Oskar
04 Mar 2017
1...
2/* List call logs matching the filter */
3const filter = {
4  minTimestamp: 1571835032,    // (Number or String) timestamp in milliseconds since UNIX epoch
5                               // if this filter is set, load(limit, filter) will only return call logs with timestamp >= minTimestamp
6
7  maxTimestamp: 1571835033,    // (Number or String) timestamp in milliseconds since UNIX epoch
8                               //
9                               // if this filter is set, load(limit, filter) will only return call logs with timestamp <= maxTimestamp
10
11  phoneNumbers: '+1234567890', // (String or an Array of String)
12                               // if this filter is set, load(limit, filter) will only return call logs for this/these phone numbers
13}
14
15const callLogs = await CallLogs.load(-1, filter) // applies filter with no limit (also works with a limit)
16...
17
similar questions