# react-native-upper

> Simple

Latest version **0.1.27** (published 2023-10-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-upper
pnpm add react-native-upper
yarn add react-native-upper
bun add react-native-upper
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.27 |
| Published | 2023-10-20 |
| First published | 2023-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 18.0.0 |
| Dependencies | 2 |
| Unpacked size | 164.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | meedwire |
| Maintainers | meedwire |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-upper
- Repository: https://github.com/meedwire/react-native-upper
- Homepage: https://github.com/meedwire/react-native-upper#readme
- Issues: https://github.com/meedwire/react-native-upper/issues
- npm.io page: https://npm.io/package/react-native-upper

## Dependencies (2)

- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13
- [react-native-quick-sqlite](https://npm.io/package/react-native-quick-sqlite.md) ^8.0.6

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.27 (latest) — 2023-10-20
- 0.1.26 — 2023-10-20
- 0.1.25 — 2023-10-20
- 0.1.24 — 2023-10-20
- 0.1.23 — 2023-10-20
- 0.1.22 — 2023-10-19
- 0.1.20 — 2023-10-19
- 0.1.19 — 2023-10-19
- 0.1.18 — 2023-10-18
- 0.1.17 — 2023-10-18
- 0.1.16 — 2023-10-18
- 0.1.15 — 2023-10-17
- 0.1.14 — 2023-10-17
- 0.1.13 — 2023-10-17
- 0.1.12 — 2023-10-17
- … 12 more at https://npm.io/package/react-native-upper/versions

## README

# react-native-upper

Simple

## Installation

```sh
yarn add react-native-upper
```

## Installation dependencies

```sh
yarn add reflect-metadata react-native-quick-sqlite
```

## Usage

```js
import 'reflect-metadata';
import 'react-native-quick-sqlite';
import { Upper } from 'react-native-upper';
import { User } from './src/entities/user.entity';

// ...

const upper = new Upper({
    name: 'upper.sllite' // database name,
    entities: {
        User
    }
});

const users = upper.Query('User');

import { Observer } from 'react-native-upper/src/react/Observer'

const Home = () => {

    function handleUpdate(){
        users.at(0).name = "Upper name" //detect change
    }

    return (
        <View style={styles.container} >
            <Observer>
                {() => users.map(user => (
                    <Observer key={user.id}> //update some item list
                       {() => <Text>{user.name}</Text>}
                    </Observer>
                ))}
            </Observer>

            <Button title="Update name" onPress={handleUpdate} />
        </View>
    )
}

import {
  Field,
  PrimaryColumn,
  UpperEntity,
} from 'react-native-upper/src/decorators';

@UpperEntity('users')
export class User {
  @PrimaryColumn({type: 'uuid'})
  id: string;

  @Field({type: 'string'})
  name: string;
}


```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)

---
_Source: https://npm.io/package/react-native-upper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
