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:

const my_schema = Pleex.schema({
    key: type
});

Arguments:

Example:

import React,{useEffect} from 'react';
import {Text} from 'react-native';
import {Pleex} from 'pleex';

const App = () => {

  const my_schema = Pleex.schema({
    name: String,
    age: Number,
    logged: Boolean,
  });

  return (
    <>
      <Text>Try Schemas</Text>
    </>
  );

};

export default App;

Last updated