Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ DerivedData
*.ipa
*.xcuserstate
project.xcworkspace
**/.xcode.env.local

# Android/IJ
#
Expand Down Expand Up @@ -80,3 +81,10 @@ lib/
# React Native Codegen
ios/generated
android/generated

# React Native Nitro Modules
nitrogen/

# example native folder
example/android/
example/ios/
11 changes: 9 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
module.exports = {
presets: [
['module:react-native-builder-bob/babel-preset', { modules: 'commonjs' }],
overrides: [
{
exclude: /\/node_modules\//,
presets: ['module:react-native-builder-bob/babel-preset'],
},
{
include: /\/node_modules\//,
presets: ['module:@react-native/babel-preset'],
},
],
};
1 change: 0 additions & 1 deletion example/App.js

This file was deleted.

9 changes: 4 additions & 5 deletions example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"newArchEnabled": true,
"splash": {
"image": "./assets/splash.png",
"image": "./assets/splash-icon.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
Expand All @@ -20,11 +21,9 @@
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"edgeToEdgeEnabled": true,
"package": "fastconfetti.example"
},
"web": {
"favicon": "./assets/favicon.png"
},
"newArchEnabled": true
"web": { "favicon": "./assets/favicon.png" }
}
}
Binary file added example/assets/splash-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed example/assets/splash.png
Binary file not shown.
8 changes: 8 additions & 0 deletions example/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { registerRootComponent } from 'expo';

import App from './src/App';

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
2 changes: 0 additions & 2 deletions example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const path = require('path');
const { getDefaultConfig } = require('@expo/metro-config');
const { getConfig } = require('react-native-builder-bob/metro-config');
const pkg = require('../package.json');

const root = path.resolve(__dirname, '..');

Expand All @@ -13,6 +12,5 @@ const root = path.resolve(__dirname, '..');
*/
module.exports = getConfig(getDefaultConfig(__dirname), {
root,
pkg,
project: __dirname,
});
28 changes: 14 additions & 14 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "react-native-fast-confetti-example",
"version": "1.0.0",
"main": "expo/AppEntry.js",
"main": "index.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
"@expo/metro-runtime": "~4.0.0",
"@shopify/react-native-skia": "1.5.0",
"expo": "^52.0.25",
"expo-status-bar": "~2.0.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.76.6",
"react-native-reanimated": "~3.16.1",
"react-native-web": "~0.19.13"
"@expo/metro-runtime": "~5.0.4",
"@shopify/react-native-skia": "v2.0.0-next.4",
"expo": "^53.0.9",
"expo-status-bar": "~2.2.3",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-native": "0.79.2",
"react-native-reanimated": "^3.17.5",
"react-native-web": "~0.20.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"react-native-builder-bob": "^0.30.2"
"@babel/core": "^7.26.0",
"react-native-builder-bob": "^0.40.9"
},
"private": true
}
98 changes: 40 additions & 58 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
{
"name": "react-native-fast-confetti",
"version": "0.8.2",
"version": "0.8.3-beta.1",
"description": "The fastest confetti animation library in react native",
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
"module": "./lib/module/index.js",
"types": "./lib/typescript/module/src/index.d.ts",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
"exports": {
".": {
"source": "./src/index.tsx",
"types": "./lib/typescript/src/index.d.ts",
"default": "./lib/module/index.js"
},
"./package.json": "./package.json"
},
"files": [
"src",
"lib",
"android",
"ios",
"cpp",
"*.podspec",
"react-native.config.js",
"!ios/build",
"!android/build",
"!android/gradle",
Expand Down Expand Up @@ -52,30 +59,33 @@
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.0.2",
"@commitlint/config-conventional": "^19.6.0",
"@eslint/compat": "^1.2.7",
"@eslint/eslintrc": "^3.3.0",
"@eslint/js": "^9.22.0",
"@evilmartians/lefthook": "^1.5.0",
"@react-native/eslint-config": "^0.73.1",
"@release-it/conventional-changelog": "^5.0.0",
"@shopify/react-native-skia": "^1.4.2",
"@react-native/babel-preset": "0.78.2",
"@react-native/eslint-config": "^0.79.2",
"@release-it/conventional-changelog": "^9.0.2",
"@shopify/react-native-skia": "2.0.0-next.4",
"@types/jest": "^29.5.5",
"@types/react": "^18.2.44",
"commitlint": "^17.0.2",
"@types/react": "^19.0.12",
"commitlint": "^19.6.1",
"del-cli": "^5.1.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-ft-flow": "^3.0.11",
"eslint-plugin-prettier": "^5.2.3",
"hermes-eslint": "^0.28.1",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"react": "18.3.1",
"react-native": "0.76.6",
"react-native-builder-bob": "^0.30.2",
"react-native-reanimated": "~3.16.1",
"release-it": "^15.0.0",
"react": "19.0.0",
"react-native": "0.79.2",
"react-native-builder-bob": "^0.40.9",
"react-native-reanimated": "^3.17.5",
"release-it": "^17.10.0",
"typescript": "^5.2.2"
},
"resolutions": {
"@types/react": "^18.2.44"
},
"peerDependencies": {
"@shopify/react-native-skia": "*",
"react": "*",
Expand All @@ -85,7 +95,7 @@
"workspaces": [
"example"
],
"packageManager": "yarn@4.6.0",
"packageManager": "yarn@4.9.1",
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
Expand All @@ -111,34 +121,12 @@
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular"
}
}
},
"eslintConfig": {
"root": true,
"extends": [
"@react-native",
"prettier"
],
"rules": {
"react/react-in-jsx-scope": "off",
"prettier/prettier": [
"error",
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
"preset": {
"name": "angular"
}
]
}
}
},
"eslintIgnore": [
"node_modules/",
"lib/"
],
"prettier": {
"quoteProps": "consistent",
"singleQuote": true,
Expand All @@ -150,12 +138,6 @@
"source": "src",
"output": "lib",
"targets": [
[
"commonjs",
{
"esm": true
}
],
[
"module",
{
Expand All @@ -165,14 +147,14 @@
[
"typescript",
{
"project": "tsconfig.build.json",
"esm": true
"project": "tsconfig.build.json"
}
]
]
},
"create-react-native-library": {
"languages": "js",
"type": "library",
"version": "0.41.2"
"version": "0.50.2"
}
}
}
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"jsx": "react-jsx",
"lib": ["ESNext"],
"module": "ESNext",
"moduleResolution": "Bundler",
"moduleResolution": "bundler",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
Expand All @@ -24,7 +24,6 @@
"skipLibCheck": true,
"strict": true,
"target": "ESNext",
"verbatimModuleSyntax": true,
"allowSyntheticDefaultImports": true
"verbatimModuleSyntax": true
}
}
Loading
Loading