{"_id":"@codeherobbf/react-native-math","_rev":"1-f5383280ec366a6bcd78ba3594c99065","name":"@codeherobbf/react-native-math","dist-tags":{"latest":"0.0.24"},"versions":{"0.0.23":{"name":"@codeherobbf/react-native-math","version":"0.0.23","keywords":["react-native","nitro"],"author":{"url":"https://github.com/mrousavy","name":"Marc Rousavy","email":"me@mrousavy.com"},"license":"MIT","_id":"@codeherobbf/react-native-math@0.0.23","maintainers":[{"name":"codeherobbf","email":"873329347@qq.com"}],"homepage":"https://github.com/mrousavy/nitro#readme","bugs":{"url":"https://github.com/mrousavy/nitro/issues"},"dist":{"shasum":"31e0d4edd31f142eb65f5ae0f7cc9ac3dd3929da","tarball":"https://registry.npmjs.org/@codeherobbf/react-native-math/-/react-native-math-0.0.23.tgz","fileCount":38,"integrity":"sha512-HVETInjPg2xw8lyShnzttuRe1ANvC6MlUxpyHd6CV7wrYkSgt64tM+fMpaJtQgzDjDhio07oVwf4zhVyltUu2A==","signatures":[{"sig":"MEQCIDoGj7PoxzpN4ATCC4J679FKoMg1fSaorrpsxNh898quAiA7xeoVbBbPEiWoxR5l3Ob03CajE7H6Kn2m3O4hjKIg/Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42756},"main":"lib/index","types":"lib/index.d.ts","module":"lib/index","source":"src/index","gitHead":"fa836420971b2462bd2adbbc6c8f4e1445ea6b0a","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\" --fix","clean":"rimraf android/build node_modules/**/android/build lib","specs":"tsc && nitro-codegen --logLevel=\"debug\"","lint-ci":"eslint \"**/*.{js,ts,tsx}\" -f @jamesacarr/github-actions","typecheck":"tsc --noEmit","typescript":"tsc","postinstall":"tsc || exit 0;"},"_npmUser":{"name":"codeherobbf","email":"873329347@qq.com"},"prettier":{"semi":false,"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"repository":{"url":"git+https://github.com/mrousavy/nitro.git","type":"git"},"_npmVersion":"10.8.1","description":"react-native-math","directories":{},"_nodeVersion":"20.16.0","eslintConfig":{"root":true,"rules":{"prettier/prettier":["warn",{"useTabs":false,"tabWidth":2,"endOfLine":"auto","quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"],"plugins":["prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.3.1","eslint":"^8.57.0","prettier":"^3.3.3","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/react":"^19.0.6","react-native":"^0.76.6","nitro-codegen":"*","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","react-native-nitro-modules":"*","@react-native/eslint-config":"^0.76.6"},"peerDependencies":{"react":"*","react-native":"*","react-native-nitro-modules":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-math_0.0.23_1737121947134_0.5261964973401567","host":"s3://npm-registry-packages-npm-production"}},"0.0.24":{"name":"@codeherobbf/react-native-math","version":"0.0.24","description":"react-native-math","main":"lib/index","module":"lib/index","types":"lib/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"postinstall":"tsc || exit 0;","typecheck":"tsc --noEmit","clean":"rimraf android/build node_modules/**/android/build lib","lint":"eslint \"**/*.{js,ts,tsx}\" --fix","lint-ci":"eslint \"**/*.{js,ts,tsx}\" -f @jamesacarr/github-actions","typescript":"tsc","specs":"tsc && nitro-codegen --logLevel=\"debug\""},"keywords":["react-native","nitro"],"repository":{"type":"git","url":"git+https://github.com/mrousavy/nitro.git"},"author":{"name":"Marc Rousavy","email":"me@mrousavy.com","url":"https://github.com/mrousavy"},"license":"MIT","bugs":{"url":"https://github.com/mrousavy/nitro/issues"},"homepage":"https://github.com/mrousavy/nitro#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@react-native/eslint-config":"^0.76.6","@types/jest":"^29.5.12","@types/react":"^19.0.6","eslint":"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","nitro-codegen":"*","prettier":"^3.3.3","react":"^18.3.1","react-native":"^0.76.6","react-native-nitro-modules":"*","typescript":"^5.5.4"},"peerDependencies":{"react":"*","react-native":"*","react-native-nitro-modules":"*"},"eslintConfig":{"root":true,"extends":["@react-native","prettier"],"plugins":["prettier"],"rules":{"prettier/prettier":["warn",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false,"endOfLine":"auto"}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false,"semi":false},"_id":"@codeherobbf/react-native-math@0.0.24","gitHead":"fa836420971b2462bd2adbbc6c8f4e1445ea6b0a","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-2tLaMNtfQRzG2PiaCXWvIAGvftFE04/7rTTjYTA/4s+ZuIXE6nrnWFZg3Agz85noFACVFOuHk1ugwrMgfTiRxg==","shasum":"1b6ee9cc2174197b06ad6d033712d5aaad8be581","tarball":"https://registry.npmjs.org/@codeherobbf/react-native-math/-/react-native-math-0.0.24.tgz","fileCount":38,"unpackedSize":42640,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCq+A3EF1IeOa3yoNR5UkxKa75H/xiC+8OuBRIqHcgibgIhAOv1idaDwpj84BoqDI1kYCvIALxDus87FYuxtMaHzjJf"}]},"_npmUser":{"name":"codeherobbf","email":"873329347@qq.com"},"directories":{},"maintainers":[{"name":"codeherobbf","email":"873329347@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-native-math_0.0.24_1737122818609_0.938871910497999"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-17T13:52:26.733Z","modified":"2025-01-17T14:06:58.957Z","0.0.23":"2025-01-17T13:52:27.368Z","0.0.24":"2025-01-17T14:06:58.789Z"},"bugs":{"url":"https://github.com/mrousavy/nitro/issues"},"author":{"name":"Marc Rousavy","email":"me@mrousavy.com","url":"https://github.com/mrousavy"},"license":"MIT","homepage":"https://github.com/mrousavy/nitro#readme","keywords":["react-native","nitro"],"repository":{"type":"git","url":"git+https://github.com/mrousavy/nitro.git"},"description":"react-native-math","maintainers":[{"name":"codeherobbf","email":"873329347@qq.com"}],"readme":"# react-native-nitro-template\r\n\r\nThis is a template for Nitro Modules.\r\n\r\n## Usage\r\n\r\nClone this repo, and change all `$$*$$` names according to your `nitro.json` file.\r\n\r\n## Contributing\r\n\r\nContribute a change to this template to update it for newer React Native versions.\r\n\r\n## Structure\r\n\r\n- [`android/`](android): All your `android`-specific implementations.\r\n  - [`build.gradle`](android/build.gradle): The gradle build file. This contains four important pieces:\r\n    1. Standard react-native library boilerplate code\r\n    2. Configures Kotlin (`apply plugin: 'org.jetbrains.kotlin.android'`)\r\n    3. Adds all Nitrogen files (`apply from: '.../NitroMath+autolinking.gradle'`)\r\n    4. Triggers the native C++ build (via CMake/`externalNativeBuild`)\r\n  - [`CMakeLists.txt`](android/CMakeLists.txt): The CMake build file to build C++ code. This contains four important pieces:\r\n    1. Creates a library called `NitroMath` (same as in `nitro.json`)\r\n    2. Adds all Nitrogen files (`include(.../NitroMath+autolinking.cmake)`)\r\n    3. Adds all custom C++ files (only `HybridTestObjectCpp.cpp`)\r\n    4. Adds a `cpp-adapter.cpp` file, which autolinks all C++ HybridObjects (only `HybridTestObjectCpp`)\r\n  - [`src/main/java/com/margelo/nitro/math/`](android/src/main/java/com/margelo/nitro/math/): All Kotlin implementations.\r\n    - [`NitroMathPackage.java`](android/src/main/java/com/margelo/nitro/math/NitroMathPackage.java): The react-native package. You need this because the react-native CLI only adds libraries if they have a `*Package.java` file. In here, you can autolink all Kotlin HybridObjects.\r\n- [`cpp/`](cpp): All your cross-platform implementations. (only `HybridTestObjectCpp.cpp`)\r\n- [`ios/`](ios): All your iOS-specific implementations.\r\n- [`nitrogen/`](nitrogen): All files generated by nitrogen. You should commit this folder to git.\r\n- [`src/`](src): The TypeScript codebase. This defines all HybridObjects and loads them at runtime.\r\n  - [`specs/`](src/specs): All HybridObject types. Nitrogen will run on all `*.nitro.ts` files.\r\n- [`nitro.json`](nitro.json): The configuration file for nitrogen. This will define all native namespaces, as well as the library name.\r\n- [`NitroMath.podspec`](NitroMath.podspec): The iOS podspec build file to build the iOS code. This contains three important pieces:\r\n  1. Specifies the Pod's name. This must be identical to the name specified in `nitro.json`.\r\n  2. Adds all of your `.swift` or `.cpp` files (implementations).\r\n  3. Adds all Nitrogen files (`add_nitrogen_files(s)`)\r\n- [`package.json`](package.json): The npm package.json file. `react-native-nitro-modules` should be a `peerDependency`.\r\n","readmeFilename":"README.md"}