react-native-seel-widget 0.1.1 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.yarnrc.yml DELETED
@@ -1,4 +0,0 @@
1
- nodeLinker: node-modules
2
- nmHoistingLimits: workspaces
3
-
4
- yarnPath: .yarn/releases/yarn-4.11.0.cjs
@@ -1,133 +0,0 @@
1
-
2
- # Contributor Covenant Code of Conduct
3
-
4
- ## Our Pledge
5
-
6
- We as members, contributors, and leaders pledge to make participation in our
7
- community a harassment-free experience for everyone, regardless of age, body
8
- size, visible or invisible disability, ethnicity, sex characteristics, gender
9
- identity and expression, level of experience, education, socio-economic status,
10
- nationality, personal appearance, race, caste, color, religion, or sexual
11
- identity and orientation.
12
-
13
- We pledge to act and interact in ways that contribute to an open, welcoming,
14
- diverse, inclusive, and healthy community.
15
-
16
- ## Our Standards
17
-
18
- Examples of behavior that contributes to a positive environment for our
19
- community include:
20
-
21
- * Demonstrating empathy and kindness toward other people
22
- * Being respectful of differing opinions, viewpoints, and experiences
23
- * Giving and gracefully accepting constructive feedback
24
- * Accepting responsibility and apologizing to those affected by our mistakes,
25
- and learning from the experience
26
- * Focusing on what is best not just for us as individuals, but for the overall
27
- community
28
-
29
- Examples of unacceptable behavior include:
30
-
31
- * The use of sexualized language or imagery, and sexual attention or advances of
32
- any kind
33
- * Trolling, insulting or derogatory comments, and personal or political attacks
34
- * Public or private harassment
35
- * Publishing others' private information, such as a physical or email address,
36
- without their explicit permission
37
- * Other conduct which could reasonably be considered inappropriate in a
38
- professional setting
39
-
40
- ## Enforcement Responsibilities
41
-
42
- Community leaders are responsible for clarifying and enforcing our standards of
43
- acceptable behavior and will take appropriate and fair corrective action in
44
- response to any behavior that they deem inappropriate, threatening, offensive,
45
- or harmful.
46
-
47
- Community leaders have the right and responsibility to remove, edit, or reject
48
- comments, commits, code, wiki edits, issues, and other contributions that are
49
- not aligned to this Code of Conduct, and will communicate reasons for moderation
50
- decisions when appropriate.
51
-
52
- ## Scope
53
-
54
- This Code of Conduct applies within all community spaces, and also applies when
55
- an individual is officially representing the community in public spaces.
56
- Examples of representing our community include using an official e-mail address,
57
- posting via an official social media account, or acting as an appointed
58
- representative at an online or offline event.
59
-
60
- ## Enforcement
61
-
62
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
- reported to the community leaders responsible for enforcement at
64
- [INSERT CONTACT METHOD].
65
- All complaints will be reviewed and investigated promptly and fairly.
66
-
67
- All community leaders are obligated to respect the privacy and security of the
68
- reporter of any incident.
69
-
70
- ## Enforcement Guidelines
71
-
72
- Community leaders will follow these Community Impact Guidelines in determining
73
- the consequences for any action they deem in violation of this Code of Conduct:
74
-
75
- ### 1. Correction
76
-
77
- **Community Impact**: Use of inappropriate language or other behavior deemed
78
- unprofessional or unwelcome in the community.
79
-
80
- **Consequence**: A private, written warning from community leaders, providing
81
- clarity around the nature of the violation and an explanation of why the
82
- behavior was inappropriate. A public apology may be requested.
83
-
84
- ### 2. Warning
85
-
86
- **Community Impact**: A violation through a single incident or series of
87
- actions.
88
-
89
- **Consequence**: A warning with consequences for continued behavior. No
90
- interaction with the people involved, including unsolicited interaction with
91
- those enforcing the Code of Conduct, for a specified period of time. This
92
- includes avoiding interactions in community spaces as well as external channels
93
- like social media. Violating these terms may lead to a temporary or permanent
94
- ban.
95
-
96
- ### 3. Temporary Ban
97
-
98
- **Community Impact**: A serious violation of community standards, including
99
- sustained inappropriate behavior.
100
-
101
- **Consequence**: A temporary ban from any sort of interaction or public
102
- communication with the community for a specified period of time. No public or
103
- private interaction with the people involved, including unsolicited interaction
104
- with those enforcing the Code of Conduct, is allowed during this period.
105
- Violating these terms may lead to a permanent ban.
106
-
107
- ### 4. Permanent Ban
108
-
109
- **Community Impact**: Demonstrating a pattern of violation of community
110
- standards, including sustained inappropriate behavior, harassment of an
111
- individual, or aggression toward or disparagement of classes of individuals.
112
-
113
- **Consequence**: A permanent ban from any sort of public interaction within the
114
- community.
115
-
116
- ## Attribution
117
-
118
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
- version 2.1, available at
120
- [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
-
122
- Community Impact Guidelines were inspired by
123
- [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
-
125
- For answers to common questions about this code of conduct, see the FAQ at
126
- [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
- [https://www.contributor-covenant.org/translations][translations].
128
-
129
- [homepage]: https://www.contributor-covenant.org
130
- [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
- [Mozilla CoC]: https://github.com/mozilla/diversity
132
- [FAQ]: https://www.contributor-covenant.org/faq
133
- [translations]: https://www.contributor-covenant.org/translations
package/CONTRIBUTING.md DELETED
@@ -1,134 +0,0 @@
1
- # Contributing
2
-
3
- Contributions are always welcome, no matter how large or small!
4
-
5
- We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project. Before contributing, please read the [code of conduct](./CODE_OF_CONDUCT.md).
6
-
7
- ## Development workflow
8
-
9
- This project is a monorepo managed using [Yarn workspaces](https://yarnpkg.com/features/workspaces). It contains the following packages:
10
-
11
- - The library package in the root directory.
12
- - An example app in the `example/` directory.
13
-
14
- To get started with the project, make sure you have the correct version of [Node.js](https://nodejs.org/) installed. See the [`.nvmrc`](./.nvmrc) file for the version used in this project.
15
-
16
- Run `yarn` in the root directory to install the required dependencies for each package:
17
-
18
- ```sh
19
- yarn
20
- ```
21
-
22
- > Since the project relies on Yarn workspaces, you cannot use [`npm`](https://github.com/npm/cli) for development without manually migrating.
23
-
24
- The [example app](/example/) demonstrates usage of the library. You need to run it to test any changes you make.
25
-
26
- It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.
27
-
28
- You can use various commands from the root directory to work with the project.
29
-
30
- To start the packager:
31
-
32
- ```sh
33
- yarn example start
34
- ```
35
-
36
- To run the example app on Android:
37
-
38
- ```sh
39
- yarn example android
40
- ```
41
-
42
- To run the example app on iOS:
43
-
44
- ```sh
45
- yarn example ios
46
- ```
47
-
48
- To confirm that the app is running with the new architecture, you can check the Metro logs for a message like this:
49
-
50
- ```sh
51
- Running "SeelWidgetExample" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":1}
52
- ```
53
-
54
- Note the `"fabric":true` and `"concurrentRoot":true` properties.
55
-
56
- To run the example app on Web:
57
-
58
- ```sh
59
- yarn example web
60
- ```
61
-
62
- Make sure your code passes TypeScript:
63
-
64
- ```sh
65
- yarn typecheck
66
- ```
67
-
68
- To check for linting errors, run the following:
69
-
70
- ```sh
71
- yarn lint
72
- ```
73
-
74
- To fix formatting errors, run the following:
75
-
76
- ```sh
77
- yarn lint --fix
78
- ```
79
-
80
- Remember to add tests for your change if possible. Run the unit tests by:
81
-
82
- ```sh
83
- yarn test
84
- ```
85
-
86
-
87
- ### Commit message convention
88
-
89
- We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages:
90
-
91
- - `fix`: bug fixes, e.g. fix crash due to deprecated method.
92
- - `feat`: new features, e.g. add new method to the module.
93
- - `refactor`: code refactor, e.g. migrate from class components to hooks.
94
- - `docs`: changes into documentation, e.g. add usage example for the module.
95
- - `test`: adding or updating tests, e.g. add integration tests using detox.
96
- - `chore`: tooling changes, e.g. change CI config.
97
-
98
- Our pre-commit hooks verify that your commit message matches this format when committing.
99
-
100
-
101
- ### Publishing to npm
102
-
103
- We use [release-it](https://github.com/release-it/release-it) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc.
104
-
105
- To publish new versions, run the following:
106
-
107
- ```sh
108
- yarn release
109
- ```
110
-
111
-
112
- ### Scripts
113
-
114
- The `package.json` file contains various scripts for common tasks:
115
-
116
- - `yarn`: setup project by installing dependencies.
117
- - `yarn typecheck`: type-check files with TypeScript.
118
- - `yarn lint`: lint files with [ESLint](https://eslint.org/).
119
- - `yarn test`: run unit tests with [Jest](https://jestjs.io/).
120
- - `yarn example start`: start the Metro server for the example app.
121
- - `yarn example android`: run the example app on Android.
122
- - `yarn example ios`: run the example app on iOS.
123
-
124
- ### Sending a pull request
125
-
126
- > **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github).
127
-
128
- When you're sending a pull request:
129
-
130
- - Prefer small pull requests focused on one change.
131
- - Verify that linters and tests are passing.
132
- - Review the documentation to make sure it looks good.
133
- - Follow the pull request template when opening a pull request.
134
- - For pull requests that change the API or implementation, discuss with maintainers first by opening an issue.
package/babel.config.js DELETED
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- overrides: [
3
- {
4
- exclude: /\/node_modules\//,
5
- presets: ['module:react-native-builder-bob/babel-preset'],
6
- },
7
- {
8
- include: /\/node_modules\//,
9
- presets: ['module:@react-native/babel-preset'],
10
- },
11
- ],
12
- };
package/eslint.config.mjs DELETED
@@ -1,29 +0,0 @@
1
- import { fixupConfigRules } from '@eslint/compat';
2
- import { FlatCompat } from '@eslint/eslintrc';
3
- import js from '@eslint/js';
4
- import prettier from 'eslint-plugin-prettier';
5
- import { defineConfig } from 'eslint/config';
6
- import path from 'node:path';
7
- import { fileURLToPath } from 'node:url';
8
-
9
- const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = path.dirname(__filename);
11
- const compat = new FlatCompat({
12
- baseDirectory: __dirname,
13
- recommendedConfig: js.configs.recommended,
14
- allConfig: js.configs.all,
15
- });
16
-
17
- export default defineConfig([
18
- {
19
- extends: fixupConfigRules(compat.extends('@react-native', 'prettier')),
20
- plugins: { prettier },
21
- rules: {
22
- 'react/react-in-jsx-scope': 'off',
23
- 'prettier/prettier': 'error',
24
- },
25
- },
26
- {
27
- ignores: ['node_modules/', 'lib/'],
28
- },
29
- ]);
package/example/app.json DELETED
@@ -1,31 +0,0 @@
1
- {
2
- "expo": {
3
- "name": "example",
4
- "slug": "example",
5
- "version": "1.0.0",
6
- "orientation": "portrait",
7
- "icon": "./assets/icon.png",
8
- "userInterfaceStyle": "light",
9
- "newArchEnabled": true,
10
- "splash": {
11
- "image": "./assets/splash-icon.png",
12
- "resizeMode": "contain",
13
- "backgroundColor": "#ffffff"
14
- },
15
- "ios": {
16
- "supportsTablet": true,
17
- "bundleIdentifier": "seelwidget.example"
18
- },
19
- "android": {
20
- "adaptiveIcon": {
21
- "foregroundImage": "./assets/adaptive-icon.png",
22
- "backgroundColor": "#ffffff"
23
- },
24
- "edgeToEdgeEnabled": true,
25
- "package": "seelwidget.example"
26
- },
27
- "web": {
28
- "favicon": "./assets/favicon.png"
29
- }
30
- }
31
- }
Binary file
Binary file
Binary file
Binary file
@@ -1,16 +0,0 @@
1
- const path = require('path');
2
- const { getConfig } = require('react-native-builder-bob/babel-config');
3
- const pkg = require('../package.json');
4
-
5
- const root = path.resolve(__dirname, '..');
6
-
7
- module.exports = function (api) {
8
- api.cache(true);
9
-
10
- return getConfig(
11
- {
12
- presets: ['babel-preset-expo'],
13
- },
14
- { root, pkg }
15
- );
16
- };
package/example/index.js DELETED
@@ -1,8 +0,0 @@
1
- import { registerRootComponent } from 'expo';
2
-
3
- import App from './src/App';
4
-
5
- // registerRootComponent calls AppRegistry.registerComponent('main', () => App);
6
- // It also ensures that whether you load the app in Expo Go or in a native build,
7
- // the environment is set up appropriately
8
- registerRootComponent(App);
@@ -1,20 +0,0 @@
1
- const path = require('path');
2
- const { getDefaultConfig } = require('@expo/metro-config');
3
- const { withMetroConfig } = require('react-native-monorepo-config');
4
-
5
- const root = path.resolve(__dirname, '..');
6
-
7
- /**
8
- * Metro configuration
9
- * https://facebook.github.io/metro/docs/configuration
10
- *
11
- * @type {import('metro-config').MetroConfig}
12
- */
13
- const config = withMetroConfig(getDefaultConfig(__dirname), {
14
- root,
15
- dirname: __dirname,
16
- });
17
-
18
- config.resolver.unstable_enablePackageExports = true;
19
-
20
- module.exports = config;
@@ -1,25 +0,0 @@
1
- {
2
- "name": "react-native-seel-widget-example",
3
- "version": "1.0.0",
4
- "main": "index.js",
5
- "scripts": {
6
- "start": "expo start",
7
- "android": "expo start --android",
8
- "ios": "expo start --ios",
9
- "web": "expo start --web"
10
- },
11
- "dependencies": {
12
- "@expo/metro-runtime": "~6.1.2",
13
- "expo": "~54.0.30",
14
- "expo-status-bar": "~3.0.9",
15
- "react": "19.1.0",
16
- "react-dom": "19.1.0",
17
- "react-native": "0.81.5",
18
- "react-native-web": "~0.21.0"
19
- },
20
- "private": true,
21
- "devDependencies": {
22
- "react-native-builder-bob": "^0.40.13",
23
- "react-native-monorepo-config": "^0.3.1"
24
- }
25
- }
@@ -1,20 +0,0 @@
1
- import { Text, View, StyleSheet } from 'react-native';
2
- import { multiply } from 'react-native-seel-widget';
3
-
4
- const result = multiply(3, 7);
5
-
6
- export default function App() {
7
- return (
8
- <View style={styles.container}>
9
- <Text>Result: {result}</Text>
10
- </View>
11
- );
12
- }
13
-
14
- const styles = StyleSheet.create({
15
- container: {
16
- flex: 1,
17
- alignItems: 'center',
18
- justifyContent: 'center',
19
- },
20
- });
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "../tsconfig",
3
- "compilerOptions": {
4
- // Avoid expo-cli auto-generating a tsconfig
5
- }
6
- }
package/lefthook.yml DELETED
@@ -1,16 +0,0 @@
1
- pre-commit:
2
- parallel: true
3
- commands:
4
-
5
- lint:
6
- glob: "*.{js,ts,jsx,tsx}"
7
- run: npx eslint {staged_files}
8
-
9
- types:
10
- glob: "*.{js,ts, jsx, tsx}"
11
- run: npx tsc
12
- commit-msg:
13
- parallel: true
14
- commands:
15
- commitlint:
16
- run: npx commitlint --edit
@@ -1 +0,0 @@
1
- it.todo('write a test');
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "./tsconfig",
3
- "exclude": ["example", "lib"]
4
- }
package/tsconfig.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "rootDir": ".",
4
- "paths": {
5
- "react-native-seel-widget": ["./src/index"]
6
- },
7
- "allowUnreachableCode": false,
8
- "allowUnusedLabels": false,
9
- "customConditions": ["react-native-strict-api"],
10
- "esModuleInterop": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "jsx": "react-jsx",
13
- "lib": ["ESNext"],
14
- "module": "ESNext",
15
- "moduleResolution": "bundler",
16
- "noEmit": true,
17
- "noFallthroughCasesInSwitch": true,
18
- "noImplicitReturns": true,
19
- "noImplicitUseStrict": false,
20
- "noStrictGenericChecks": false,
21
- "noUncheckedIndexedAccess": true,
22
- "noUnusedLocals": true,
23
- "noUnusedParameters": true,
24
- "resolveJsonModule": true,
25
- "skipLibCheck": true,
26
- "strict": true,
27
- "target": "ESNext",
28
- "verbatimModuleSyntax": true
29
- }
30
- }