Pleex
Search…
Schema
How to create schema's, with schema manage you'r data types and make an structure for them

schema({'my schema object'})

How to use:

1
const my_schema = Pleex.schema({
2
key: type
3
});
Copied!

Arguments:

parameter
required
types
schema object
yes
object

Example:

1
import React,{useEffect} from 'react';
2
import {Text} from 'react-native';
3
import {Pleex} from 'pleex';
4
5
const App = () => {
6
7
const my_schema = Pleex.schema({
8
name: String,
9
age: Number,
10
logged: Boolean,
11
});
12
13
return (
14
<>
15
<Text>Try Schemas</Text>
16
</>
17
);
18
19
};
20
21
export default App;
Copied!
Last modified 2yr ago