* feat(expo-example): update to match example app structure - Add promise-based present/dismiss to TrueSheet.web.tsx - Remove tabs navigation, use stack-based routing - Add screens: Map, Standard, Modal, Test - Add shared components and sheet components - Add utils (constants, times, random) - Add react-native-maps dependency * feat(expo-example): add Map component and SheetStack with withLayoutContext - Add platform-specific Map component (native MapView, web View fallback) - Add sheet-stack route using expo-router's withLayoutContext - Integrate createTrueSheetNavigator with expo-router file-based routing * refactor: create shared example-shared package for common components - Create @truesheet/example-shared workspace package - Move common components (Button, Header, Footer, etc.) to shared - Move sheet components (BasicSheet, PromptSheet, etc.) to shared - Move utils (constants, times, random) to shared - Update example and expo-example to re-export from shared * chore: reorganize examples into examples/ folder - Move example/ to examples/bare/ - Move expo-example/ to examples/expo/ - Move example-shared/ to examples/shared/ - Update workspace paths in root package.json - Rename packages to @truesheet/bare-example, @truesheet/expo-example - Update script names (example -> bare, expo) * chore: update config paths for examples folder reorganization * chore: rename examples to example and update package names to @example/* * chore: move screen components to shared package - Add MapScreen, ModalScreen, StandardScreen, TestScreen to shared - Make screens navigation-agnostic with callback props - Add MapComponent prop to MapScreen for platform-specific map - Create Map component in bare example - Update expo and bare examples to use shared screens * chore: import screens directly from @example/shared/screens * chore: import components and utils directly from @example/shared * chore: remove unused sheets index files * chore: move Map component to shared package * chore: remove unused constants folder from expo example * chore: remove unused ReanimatedExample component * chore: update scripts for new example folder structure * chore: exclude example folder from jest test paths * chore: add expo prebuild step to clean script * fix: update config paths for new example folder structure * chore: categorize steps in clean script * fix: use workspace:* for example dependencies - Change @lodev09/react-native-true-sheet from * to workspace:* in bare and expo examples - Fixes duplicate view registration error caused by npm version being installed alongside workspace - Silence clean.sh script output while preserving error visibility
271 lines
6.9 KiB
JSON
271 lines
6.9 KiB
JSON
{
|
|
"name": "@lodev09/react-native-true-sheet",
|
|
"version": "3.3.0-beta.0",
|
|
"description": "The true native bottom sheet experience for your React Native Apps.",
|
|
"source": "./src/index.ts",
|
|
"main": "./lib/module/index.js",
|
|
"types": "./lib/typescript/src/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"source": "./src/index.ts",
|
|
"types": "./lib/typescript/src/index.d.ts",
|
|
"default": "./lib/module/index.js"
|
|
},
|
|
"./reanimated": {
|
|
"source": "./src/reanimated/index.ts",
|
|
"types": "./lib/typescript/src/reanimated/index.d.ts",
|
|
"default": "./lib/module/reanimated/index.js"
|
|
},
|
|
"./navigation": {
|
|
"source": "./src/navigation/index.ts",
|
|
"types": "./lib/typescript/src/navigation/index.d.ts",
|
|
"default": "./lib/module/navigation/index.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"lib",
|
|
"android",
|
|
"ios",
|
|
"common",
|
|
"*.podspec",
|
|
"react-native.config.js",
|
|
"!ios/build",
|
|
"!android/build",
|
|
"!android/gradle",
|
|
"!android/gradlew",
|
|
"!android/gradlew.bat",
|
|
"!android/local.properties",
|
|
"!**/__tests__",
|
|
"!**/__fixtures__",
|
|
"!**/.*"
|
|
],
|
|
"scripts": {
|
|
"example": "yarn workspace @example/bare",
|
|
"expo": "yarn workspace @example/expo",
|
|
"docs": "yarn workspace docs",
|
|
"test": "jest",
|
|
"typecheck": "tsc",
|
|
"lint": "eslint --fix \"**/*.{ts,tsx}\"",
|
|
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
|
"tidy": "yarn typecheck && yarn lint && yarn format && scripts/objclint.sh && scripts/ktlint.sh",
|
|
"clean": "scripts/clean.sh",
|
|
"prepare": "bob build",
|
|
"release": "release-it --only-version && npm publish",
|
|
"release:beta": "yarn release --preRelease=beta && npm publish"
|
|
},
|
|
"keywords": [
|
|
"react-native",
|
|
"ios",
|
|
"android",
|
|
"bottom-sheet",
|
|
"native-sheet",
|
|
"sheet",
|
|
"fabric",
|
|
"turbo-module"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/lodev09/react-native-true-sheet.git"
|
|
},
|
|
"author": "Jovanni Lo <lodev09@gmail.com> (https://github.com/lodev09)",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/lodev09/react-native-true-sheet/issues"
|
|
},
|
|
"homepage": "https://sheet.lodev09.com",
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.28.5",
|
|
"@commitlint/config-conventional": "^19.8.1",
|
|
"@eslint/compat": "^1.3.2",
|
|
"@eslint/eslintrc": "^3.3.1",
|
|
"@eslint/js": "^9.35.0",
|
|
"@evilmartians/lefthook": "^2.0.4",
|
|
"@gorhom/bottom-sheet": "^5.2.8",
|
|
"@react-native/babel-preset": "^0.82.1",
|
|
"@react-native/eslint-config": "^0.82.1",
|
|
"@react-navigation/native": "^7.1.6",
|
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
"@testing-library/react-native": "^13.3.3",
|
|
"@types/babel__core": "^7",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/react": "19.1.1",
|
|
"commitlint": "^19.8.1",
|
|
"del-cli": "^6.0.0",
|
|
"eslint": "^9.35.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.4",
|
|
"jest": "^29.7.0",
|
|
"nanoid": "^5.1.5",
|
|
"prettier": "^3.0.3",
|
|
"react": "19.1.1",
|
|
"react-native": "0.82.1",
|
|
"react-native-builder-bob": "^0.40.15",
|
|
"react-native-reanimated": "^4.2.0",
|
|
"react-native-worklets": "^0.7.0",
|
|
"react-test-renderer": "19.1.1",
|
|
"release-it": "^19.0.4",
|
|
"turbo": "^2.5.6",
|
|
"typescript": "^5.9.2"
|
|
},
|
|
"resolutions": {
|
|
"@types/react": "19.1.1",
|
|
"react-native-reanimated": "^4.2.0",
|
|
"react-native-worklets": "^0.7.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@gorhom/bottom-sheet": ">=5",
|
|
"@react-navigation/native": ">=7",
|
|
"react": "*",
|
|
"react-native": "*",
|
|
"react-native-reanimated": ">=4",
|
|
"react-native-worklets": "*"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@gorhom/bottom-sheet": {
|
|
"optional": true
|
|
},
|
|
"@react-navigation/native": {
|
|
"optional": true
|
|
},
|
|
"react-native-reanimated": {
|
|
"optional": true
|
|
},
|
|
"react-native-worklets": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"workspaces": [
|
|
"example/bare",
|
|
"example/expo",
|
|
"example/shared",
|
|
"docs"
|
|
],
|
|
"packageManager": "yarn@4.11.0",
|
|
"jest": {
|
|
"preset": "react-native",
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/jest.setup.js"
|
|
],
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(react-native|@react-native|react-native-reanimated|react-native-worklets|react-native-worklets-core)/)"
|
|
],
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/example/bare/node_modules",
|
|
"<rootDir>/example/expo/node_modules",
|
|
"<rootDir>/example/shared/node_modules",
|
|
"<rootDir>/lib/",
|
|
"<rootDir>/docs/node_modules",
|
|
"<rootDir>/docs/build"
|
|
],
|
|
"testPathIgnorePatterns": [
|
|
"/node_modules/",
|
|
"<rootDir>/src/__mocks__/",
|
|
"<rootDir>/example/"
|
|
]
|
|
},
|
|
"commitlint": {
|
|
"extends": [
|
|
"@commitlint/config-conventional"
|
|
]
|
|
},
|
|
"release-it": {
|
|
"git": {
|
|
"commitMessage": "chore: release ${version}",
|
|
"tagName": "v${version}"
|
|
},
|
|
"npm": {
|
|
"publish": false
|
|
},
|
|
"hooks": {
|
|
"before:init": [
|
|
"yarn tidy",
|
|
"yarn test"
|
|
]
|
|
},
|
|
"github": {
|
|
"release": true,
|
|
"comments": {
|
|
"submit": true,
|
|
"issue": ":rocket: _This issue has been resolved in v${version}. See [${releaseName}](${releaseUrl}) for release notes._",
|
|
"pr": ":rocket: _This pull request is included in v${version}. See [${releaseName}](${releaseUrl}) for release notes._"
|
|
}
|
|
},
|
|
"plugins": {
|
|
"@release-it/conventional-changelog": {
|
|
"preset": {
|
|
"name": "angular"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"prettier": {
|
|
"quoteProps": "consistent",
|
|
"singleQuote": true,
|
|
"tabWidth": 2,
|
|
"trailingComma": "es5",
|
|
"useTabs": false,
|
|
"printWidth": 100
|
|
},
|
|
"react-native-builder-bob": {
|
|
"source": "src",
|
|
"output": "lib",
|
|
"targets": [
|
|
[
|
|
"module",
|
|
{
|
|
"esm": true
|
|
}
|
|
],
|
|
[
|
|
"typescript",
|
|
{
|
|
"project": "tsconfig.build.json"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"create-react-native-library": {
|
|
"languages": "kotlin-objc",
|
|
"type": "fabric-view",
|
|
"tools": [
|
|
"eslint",
|
|
"lefthook",
|
|
"release-it",
|
|
"jest"
|
|
],
|
|
"version": "0.55.0"
|
|
},
|
|
"codegenConfig": {
|
|
"name": "TrueSheetSpec",
|
|
"type": "all",
|
|
"jsSrcsDir": "src",
|
|
"android": {
|
|
"javaPackageName": "com.lodev09.truesheet"
|
|
},
|
|
"ios": {
|
|
"components": {
|
|
"TrueSheetView": {
|
|
"className": "TrueSheetView"
|
|
},
|
|
"TrueSheetContainerView": {
|
|
"className": "TrueSheetContainerView"
|
|
},
|
|
"TrueSheetContentView": {
|
|
"className": "TrueSheetContentView"
|
|
},
|
|
"TrueSheetHeaderView": {
|
|
"className": "TrueSheetHeaderView"
|
|
},
|
|
"TrueSheetFooterView": {
|
|
"className": "TrueSheetFooterView"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|