Skip to content

Commit

Permalink
chore: example with dev client not working
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Nov 7, 2021
1 parent 598ccfb commit 8768890
Show file tree
Hide file tree
Showing 25 changed files with 1,552 additions and 485 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ android/keystores/debug.keystore

# generated by bob
lib/

**/*/ios
**/*/android
8 changes: 6 additions & 2 deletions examples/expo/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
"web"
],
"ios": {
"supportsTablet": true
"supportsTablet": true,
"bundleIdentifier": "com.nandorojo.zeeg-example"
},
"assetBundlePatterns": [
"**/*"
]
],
"android": {
"package": "com.nandorojo.zeegexample"
}
}
}
26 changes: 16 additions & 10 deletions examples/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,32 @@
"private": true,
"main": "index",
"scripts": {
"android": "expo start --android",
"ios": "expo start --ios",
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start --web",
"start": "expo start",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"expo": "^42.0.0",
"expo-splash-screen": "~0.11.2",
"react": "16.13.1",
"add": "^2.0.6",
"expo": "^43.0.0",
"expo-splash-screen": "^0.13.5",
"expo-status-bar": "~1.0.4",
"expo-updates": "~0.10.5",
"react": "17.0.1",
"react-dom": "16.13.1",
"react-native": "0.63.4",
"react-native-unimodules": "~0.14.5",
"react-native": "0.64.2",
"react-native-gesture-handler": "~1.10.2",
"react-native-reanimated": "~2.2.0",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "~3.4.0",
"react-native-web": "~0.13.12"
},
"devDependencies": {
"@babel/core": "~7.9.0",
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.9.6",
"babel-plugin-module-resolver": "^4.0.0",
"babel-preset-expo": "8.3.0",
"babel-preset-expo": "8.5.1",
"expo-cli": "^4.0.13"
}
}
5 changes: 1 addition & 4 deletions examples/expo/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import * as React from 'react';

import { StyleSheet, View, Text } from 'react-native';
import { multiply } from 'zeeg';

export default function App() {
const [result, setResult] = React.useState<number | undefined>();

React.useEffect(() => {
multiply(3, 7).then(setResult);
}, []);
React.useEffect(() => {}, []);

return (
<View style={styles.container}>
Expand Down
154 changes: 154 additions & 0 deletions packages/context-menu/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
{
"name": "@zeeg/context-menu",
"version": "0.1.0",
"description": "The core for dropdown-menu & context-menu, made for screens.",
"private": true,
"workspaces": {
"packages": [
"packages/*",
"examples/*"
]
},
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"files": [
"src",
"lib",
"android",
"ios",
"cpp",
"zeeg.podspec",
"!lib/typescript/example",
"!android/build",
"!ios/build",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__"
],
"scripts": {
"test": "jest",
"typescript": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"prepare": "bob build",
"release": "release-it",
"example": "yarn --cwd example",
"pods": "cd example && pod-install --quiet",
"bootstrap": "yarn example && yarn && yarn pods"
},
"keywords": [
"react-native",
"ios",
"android"
],
"repository": "https://github.com/nandorojo/zeeg",
"author": "Fernando Rojo <[email protected]> (https://twitter.com/fernandotherojo)",
"license": "MIT",
"bugs": {
"url": "https://github.com/nandorojo/zeeg/issues"
},
"homepage": "https://github.com/nandorojo/zeeg#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@commitlint/config-conventional": "^11.0.0",
"@react-native-community/eslint-config": "^2.0.0",
"@release-it/conventional-changelog": "^2.0.0",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.19",
"@types/react-native": "0.62.13",
"commitlint": "^11.0.0",
"eslint": "^7.2.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^3.1.3",
"husky": "^6.0.0",
"jest": "^26.0.1",
"pod-install": "^0.1.0",
"prettier": "^2.0.5",
"react": "16.13.1",
"react-native": "0.63.4",
"react-native-builder-bob": "^0.18.0",
"release-it": "^14.2.2",
"typescript": "^4.1.3"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
"<rootDir>/example/node_modules",
"<rootDir>/lib/"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"release-it": {
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular"
}
}
},
"eslintConfig": {
"root": true,
"extends": [
"@react-native-community",
"prettier"
],
"rules": {
"prettier/prettier": [
"error",
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
]
}
},
"eslintIgnore": [
"node_modules/",
"lib/"
],
"prettier": {
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
}
}
1 change: 1 addition & 0 deletions packages/context-menu/src/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
it.todo('write a test');
3 changes: 3 additions & 0 deletions packages/context-menu/src/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function multiply(a: number, b: number): Promise<number> {
return Promise.resolve(a * b);
}
3 changes: 3 additions & 0 deletions packages/context-menu/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../tsconfig.build"
}
6 changes: 6 additions & 0 deletions packages/context-menu/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"outDir": "./lib/typescript"
}
}
Loading

0 comments on commit 8768890

Please sign in to comment.