Registry /
crm-productivity / totvs-react-native-framework
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import TotvsFramework from 'totvs-react-native-framework'
✗ const TotvsFramework = require('totvs-react-native-framework')
Default export provides the main framework object with components.
Button
✓ import { Button } from 'totvs-react-native-framework'
✗ import Button from 'totvs-react-native-framework/Button'
Named export available since v0.x.
PickerSelect
✓ import { PickerSelect } from 'totvs-react-native-framework'
✗ import PickerSelect from 'totvs-react-native-framework'
Named export; must use destructured import.
TextInputTotvs
✓ import { TextInputTotvs } from 'totvs-react-native-framework'
✗ import TextInputTotvs from 'totvs-react-native-framework'
Named export; component name may change in future versions.
MobX
✓ import { MobX } from 'totvs-react-native-framework'
✗ import MobXProvider from 'totvs-react-native-framework/MobX'
Named export for MobX integration utils.
Demonstrates importing the framework and using three core components (Button, PickerSelect, TextInputTotvs) in a React Native app.
import TotvsFramework from 'totvs-react-native-framework';
import { Button, PickerSelect, TextInputTotvs } from 'totvs-react-native-framework';
// Initialize framework (optional)
// TotvsFramework.init({ ... });
const App = () => (
<>
<Button title="Click" onPress={() => alert('Pressed')} />
<PickerSelect
items={[{ label: 'Option 1', value: '1' }, { label: 'Option 2', value: '2' }]}
onValueChange={(value) => console.log(value)}
placeholder={{ label: 'Select...', value: null }}
/>
<TextInputTotvs
placeholder="Enter text"
onChangeText={(text) => console.log(text)}
/>
</>
);
export default App;
Errors
Common errors & fixes
Module not found: Can't resolve 'react-native-svg'
Missing peer dependency react-native-svg.
fixnpm install react-native-svg --save
null is not an object (evaluating 'RNSVGPathElement')
Incorrect linking of react-native-svg (pre RN 0.60) or missing auto-linking (RN >= 0.60).
fixFor RN < 0.60: react-native link react-native-svg; for RN >= 0.60: ensure pod install or rebuild.
Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function but got: object.
Trying to import a component incorrectly (e.g., default import vs named import).
fixUse named imports: import { Button } from 'totvs-react-native-framework' Cannot find module 'mobx-react'
MobX peer dependencies not installed.
fixnpm install mobx mobx-react --save
Audit
Dependencies
reactrequiredpeer dependency - required by React Native
react-nativerequiredpeer dependency - core framework
react-native-svgrequiredpeer dependency - used for vector graphics
react-native-vector-iconsrequiredpeer dependency - icon library
lottie-react-nativerequiredpeer dependency - animations
victory-nativerequiredpeer dependency - charts
react-native-datepickerrequiredpeer dependency - date picker component
mobxrequiredpeer dependency - state management
react-native-fingerprint-scannerrequiredpeer dependency - biometric authentication
mobx-reactrequiredpeer dependency - MobX React bindings
react-native-pickerrequiredpeer dependency - picker component