Collection
Collection can initial your collection and start calling methods that returned by this api.
collection("name of the collection")
collection("name of the collection")
How to use:
const my_collection = Pleex.collection('myCollection');
// my_collection can be any name you want
// myCollection can be any name you want
Arguments:
parameter
required
type
Name of collection
yes
string
Example:
import React,{useEffect} from 'react';
import {Text} from 'react-native';
import {Pleex} from 'pleex';
const App = () => {
useEffect(() => {
// Initial Pleex here
const my_collection = Pleex.collection('myCollection');
}, []);
return (
<>
<Text>Hello World</Text>
</>
);
};
export default App;
Last updated
Was this helpful?