Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
tjzel committed May 9, 2024
1 parent 02e5fdc commit b041080
Show file tree
Hide file tree
Showing 314 changed files with 977 additions and 12,461 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions packages/Example/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: [['react-native-reanimated/plugin', {processNestedWorklets: true}]],
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Large diffs are not rendered by default.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
};
00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
Expand Down Expand Up @@ -646,7 +646,7 @@
"$(inherited)",
" ",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
};
Expand Down Expand Up @@ -721,7 +721,7 @@
"$(inherited)",
" ",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
VALIDATE_PRODUCT = YES;
Expand Down
File renamed without changes.
42 changes: 42 additions & 0 deletions packages/Example/metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');

const path = require('path');
// const exclusionList = require('metro-config/src/defaults/exclusionList');
// const escape = require('escape-string-regexp');
// const pack = require('../../package.json');

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

// const modules = Object.keys(pack.peerDependencies);

// /**
// * Metro configuration
// * https://facebook.github.io/metro/docs/configuration
// *
// * @type {import('metro-config').MetroConfig}
// */
// const config = {
// projectRoot: __dirname,
// watchFolders: [root],

// // We need to make sure that only one version is loaded for peerDependencies
// // So we exclude them at the root, and alias them to the versions in example's node_modules
// resolver: {
// blacklistRE: exclusionList(
// modules.map(
// m => new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`),
// ),
// ),

// extraNodeModules: modules.reduce((acc, name) => {
// acc[name] = path.join(__dirname, 'node_modules', name);
// return acc;
// }, {}),
// },
// };

const config = {
watchFolders: [root],
};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ReanimatedExample",
"name": "react-native-reanimated-example",
"version": "0.0.1",
"private": true,
"scripts": {
Expand All @@ -21,7 +21,8 @@
"react-native": "0.74.0",
"react-native-gesture-handler": "^2.16.0",
"react-native-pager-view": "^6.2.3",
"react-native-reanimated": "link:../",
"react-native-reanimated": "workspace:*",
"react-native-reanimated-app": "workspace:*",
"react-native-safe-area-context": "4.10.0-rc.1",
"react-native-screens": "3.31.0-rc.1",
"react-native-svg": "^15.2.0-rc.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/Example/react-native.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
// project: {
// ios: {},
// android: {},
// },
// assets: ['./assets/fonts/'],
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.json",
"extends": "../react-native-reanimated/tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "react-native-reanimated-app",
"private": true,
"scripts": {
"build": "yarn patch-package",
Expand All @@ -23,7 +24,7 @@
"react-dom": "18.0.0",
"react-native-gesture-handler": "^2.16.0",
"react-native-pager-view": "^6.2.3",
"react-native-reanimated": "link:../",
"react-native-reanimated": "workspace:*",
"react-native-safe-area-context": "4.10.0-rc.1",
"react-native-screens": "3.31.0-rc.1",
"react-native-svg": "^15.2.0-rc.0",
Expand All @@ -33,7 +34,6 @@
"@tsconfig/react-native": "^3.0.0",
"@types/d3-shape": "^3.1.1",
"eslint": "^8.0.0-0",
"eslint-plugin-reanimated": "link:../eslintPlugin",
"patch-package": "^7.0.0",
"prettier": "^2.8.7",
"typescript": "^5.0.2"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b041080

Please sign in to comment.