Methods
This function returns a button with the required settings
Parameters:
Name |
Type |
Description |
param0 |
Object
|
`{title, OnPress, color}`, where
title is the title of the button, OnPress is the click handler and color is the
display color of the button |
- Source:
Returns:
A react native button
Type Definitions
bookListCallback(books)
This callback type is called `bookListCallback` and defines a callback for a React
Native state modifier which sets a (possibly null) array of Books.
Parameters:
Name |
Type |
Description |
books |
Array.<Object>
|
The list of books to set as the new state.
Properties
Name |
Type |
Attributes |
Description |
key |
string
|
|
A unique identifier for the book in the list. |
title |
string
|
|
The title of a book. |
description |
string
|
<optional>
|
A short blurb about the book. |
author |
string
|
<optional>
|
The author of a book. |
publisher |
string
|
<optional>
|
The publisher of a book. |
year |
number
|
<optional>
|
The year in which a book was published. |
coverUrl |
string
|
<optional>
|
A link to a thumbnail for the book's cover. |
|
- Source:
FirebaseConfig
An object which defines the options to be used in camera processing.
Type:
Properties:
Name |
Type |
Description |
apiKey |
string
|
The private API key to authenticate requests. |
authDomain |
string
|
The endpoint for authenticating users. |
projectId |
string
|
The Firebase ID for the project. |
storageBucket |
string
|
The endpoint for the Firestore database. |
messagingSenderId |
string
|
|
appId |
string
|
|
measurementId |
string
|
|
- Source:
Genre
Genre and its associated label
Type:
Properties:
Name |
Type |
Description |
label |
string
|
The label associated with this genre |
- Source:
Label
Label and its corresponding genre.
Type:
Properties:
Name |
Type |
Description |
genre |
string
|
The genre associated with this label |
- Source:
loadingCallback(loadingInfo)
This callback type is called `loadingCallback` and defines a callback for a React
Native state modifier which sets an (possibly null) object containing information
about loading status.
Parameters:
Name |
Type |
Description |
loadingInfo |
Object
|
An object describing loading status and information.
Properties
Name |
Type |
Description |
isLoading |
boolean
|
Whether or not loading is in progress. |
msg |
string
|
A message to display explaining the undergoing process. |
|
- Source:
Options
An object which defines the options to be used in camera processing.
Type:
Properties:
Name |
Type |
Description |
mediaType |
string
|
Type of media |
videoQuality |
string
|
Quality of media being captured |
quality |
number
|
Quality of media being processed |
maxWidth |
number
|
Maximum width of media |
maxHeight |
number
|
Maximum width of media |
includeBase64 |
boolean
|
Whether or not to include the Base64
encoding of the media. |
saveToPhotos |
boolean
|
Whether to save the captured media to the
user's device. |
durationLimit |
number
|
The maximum capture duration (0 = no limit). |
- Source: