You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Why not native text color animation:** Fabric's text rendering pipeline (`RCTParagraphComponentView` on iOS) manages text via `NSAttributedString` in the shadow tree. The `attributedText` is readonly — color can't be mutated from outside the Fabric commit cycle. Android's `ReactTextView.setTextColor()` works, but iOS doesn't. JS interpolation keeps behavior consistent cross-platform.
62
62
63
-
**TextAnimateProps:**`Omit<AnimateProps, 'borderRadius' | 'backgroundColor'>` — same transform/opacity props as EaseView. Color is handled separately via `interpolateColor`.
63
+
**TextAnimateProps:**`Omit<AnimateProps, 'borderRadius' | 'backgroundColor' | 'borderWidth' | 'borderColor' | 'shadowOpacity' | 'shadowRadius' | 'shadowColor' | 'shadowOffset' | 'elevation'>` — transform/opacity props only; view-only properties (border, background, shadow, elevation) are excluded. Color is handled separately via `interpolateColor`.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+14-27Lines changed: 14 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,13 @@ The [example app](/example/) demonstrates usage of the library. You need to run
25
25
26
26
It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.
27
27
28
-
If you want to use Android Studio or Xcode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/EaseExample.xcworkspace` in Xcode and find the source files at `Pods > Development Pods > react-native-ease`.
28
+
If you want to use Android Studio or Xcode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/Ease.xcworkspace` in Xcode and find the source files at `Pods > Development Pods > react-native-ease`.
29
29
30
30
To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `react-native-ease` under `Android`.
31
31
32
32
You can use various commands from the root directory to work with the project.
33
33
34
-
To start the packager:
34
+
To start the example app packager:
35
35
36
36
```sh
37
37
yarn example start
@@ -49,44 +49,31 @@ To run the example app on iOS:
49
49
yarn example ios
50
50
```
51
51
52
-
To confirm that the app is running with the new architecture, you can check the Metro logs for a message like this:
53
-
54
-
```sh
55
-
Running "EaseExample" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":1}
56
-
```
57
-
58
-
Note the `"fabric":true` and `"concurrentRoot":true` properties.
59
-
60
-
Make sure your code passes TypeScript:
61
-
62
-
```sh
63
-
yarn typecheck
64
-
```
65
-
66
-
To check for linting errors, run the following:
52
+
To run linting and type checks:
67
53
68
54
```sh
69
55
yarn lint
70
56
```
71
57
72
-
To fix formatting errors, run the following:
58
+
To check formatting:
73
59
74
60
```sh
75
-
yarn lint --fix
61
+
yarn format:check
76
62
```
77
63
78
-
79
-
80
64
### Scripts
81
65
82
-
The `package.json`file contains various scripts for common tasks:
66
+
The root `package.json` contains these common scripts:
83
67
84
-
-`yarn`: setup project by installing dependencies.
85
-
-`yarn typecheck`: type-check files with TypeScript.
86
-
-`yarn lint`: lint files with [ESLint](https://eslint.org/).
68
+
-`yarn`: install dependencies for the workspace.
69
+
-`yarn format:check`: check Prettier and clang-format.
70
+
-`yarn format:write`: write Prettier and clang-format fixes.
71
+
-`yarn lint`: run ESLint and TypeScript checks for the library and example app.
72
+
-`yarn test`: run the Jest test suite.
73
+
-`yarn prepare`: build the library with `react-native-builder-bob`.
87
74
-`yarn example start`: start the Metro server for the example app.
88
-
-`yarn example android`: run the example app on Android.
89
75
-`yarn example ios`: run the example app on iOS.
76
+
-`yarn example android`: run the example app on Android.
90
77
91
78
### Sending a pull request
92
79
@@ -95,7 +82,7 @@ The `package.json` file contains various scripts for common tasks:
95
82
When you're sending a pull request:
96
83
97
84
- Prefer small pull requests focused on one change.
98
-
- Verify that linters and tests are passing.
85
+
- Verify that formatting, linting, tests, and any relevant example app checks are passing.
99
86
- Review the documentation to make sure it looks good.
100
87
- Follow the pull request template when opening a pull request.
101
88
- For pull requests that change the API or implementation, discuss with maintainers first by opening an issue.
0 commit comments