getItems({key: value, ...} , (data)=> {}, (error)=> {})
my_collection.getItems(
{key: value},
(data) => // data array can access here,
(error) => alert(error)
);
import React,{useEffect} from 'react';
import {Text} from 'react-native';
import {Pleex} from 'pleex';
const App = () => {
// Create collection
const my_collection = Pleex.collection('myCollection');
// Get all data saved
my_collection.getItems(
{ age: 12 },
(data) => // data array can access here,
(error) => alert(error)
);
return (
<>
<Text>Try getItems api</Text>
</>
);
};
export default App;