@onekeyfe/react-native-text 3.0.179 → 3.0.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +31 -0
- package/README.md +12 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -19,3 +19,34 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
React Native-derived source
|
|
26
|
+
|
|
27
|
+
The React Native-derived code retains its Meta copyright notices. The following
|
|
28
|
+
MIT grant was checked against React Native v0.86.2; this identifies the license
|
|
29
|
+
terms and does not assert that every adapted file is an exact copy of that tag.
|
|
30
|
+
https://raw.githubusercontent.com/facebook/react-native/v0.86.2/LICENSE
|
|
31
|
+
|
|
32
|
+
MIT License
|
|
33
|
+
|
|
34
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
+
|
|
36
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
37
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
38
|
+
in the Software without restriction, including without limitation the rights
|
|
39
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
40
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
41
|
+
furnished to do so, subject to the following conditions:
|
|
42
|
+
|
|
43
|
+
The above copyright notice and this permission notice shall be included in all
|
|
44
|
+
copies or substantial portions of the Software.
|
|
45
|
+
|
|
46
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
47
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
48
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
49
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
50
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
51
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
52
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -47,6 +47,18 @@ to export React Native Text directly.
|
|
|
47
47
|
See [src/types.ts](src/types.ts) for the public props and the platform-specific
|
|
48
48
|
files under `src` for the wrapper implementation.
|
|
49
49
|
|
|
50
|
+
## Choosing the platform component
|
|
51
|
+
|
|
52
|
+
Both `import { Text }` and the package's default import select the same public
|
|
53
|
+
component. `TextProps` extends the supported text prop surface; the package
|
|
54
|
+
does not add a font-size-fitting or container-resizing prop.
|
|
55
|
+
|
|
56
|
+
The Android implementation distinguishes root and nested text to preserve
|
|
57
|
+
React Native text composition. On other platforms it forwards to React Native
|
|
58
|
+
Text. Keep the component opt-in at the call sites needing the clipping guard,
|
|
59
|
+
and validate native builds when changing the React Native version because
|
|
60
|
+
Android registration depends on its renderer internals.
|
|
61
|
+
|
|
50
62
|
## License
|
|
51
63
|
|
|
52
64
|
MIT.
|