Skip to content

obayit/odoo-react-native-client

Repository files navigation

Odoo React Native Client

This project is still in the early development stage, and major changes will be applied.

How to run

This is a managed expo project, run the following commands to start the development: npm install, thennpx expo start

Screenshots

Login

Home

Dynamic List

Used libraries

  • State Management: redux (RTK Query)
  • Navigation: React Navigation
  • Form data: React Hook Form
  • Form validation: Yup

Features

  • Centralized Error Handling: errors can be triggered using a callback method provided by APIErrorContext context.
  • Can add odoo models data dynamically (e.g: add a search_read endpoint for res.currency). This is achived with RTK Query's injectEndpoints.

Milestones:

  • Field builder: build the react-hook-form form using an object describing the field properties.
  • API: search_read (with paging), read
  • API: create, write, unlink
  • API: attachments
  • UI: UI Kitten custom mapping to match Odoo theme

Why react-native-svg is not in sync with expo version?

because the expo version causes an error for ui kitten eva icons, see: akveo/react-native-ui-kitten#1675

If you see the error:

Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
setTintColor
SvgView.java:1

That is because an incompatible version of react-native-svg is installed, see the above issue.

About

Odoo React Native Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published