dotmind / rn-shadow-generator Goto Github PK
View Code? Open in Web Editor NEWReact Native Shadow Generator is a tool to quickly generate your shadow's Components. Tool builded by .mind team.
License: MIT License
React Native Shadow Generator is a tool to quickly generate your shadow's Components. Tool builded by .mind team.
License: MIT License
Great work
Facing an issue using the library with a non-TS project and testing with Jest caused me an issue with this library: Jest encountered an unexpected token
. This happened when importing the ShadowView
component
import { ShadowView } from "@dotmind/rn-shadow-generator"
If the maintainers consider this valid, it could be evolved to a specific session inside the documentation.
It is just a supposition but as this library is probably shipped without pre-compiling into "native" JS, it still has some references to new JS or even TS.
Jest allows a config file (jest.config.js
) that it is possible to pass your own configs. By default, Jest doesn't transform or change anything from node_modules/
dir. It is possible to change that and pass that with the option transformIgnorePatterns
into the jest.config.js
file:
module.exports = {
// ...
transformIgnorePatterns: [
"node_modules/(?!@dotmind)"
],
// ...
};
Those options allow a list of Regular Expressions passed as Strings and that's why the ?!
should be placed at start of the desired string to be ignored. If it is needed to add another library to be ignored such as react-navigation
it is possible (and recommended) to inform as a string: "node_modules/(?!@dotmind|@react-navigation)"
Hope that helps someone else! ๐
Hi, thanks for your work!
I applied color to shadowColor
property, and nothing changes. 'red'
, '#2C66F5'
, 'rgba(0, 0, 0, 0.1)'
- no matter what I tried, nothing worked.
Tested on Android 8, RN 0.64.1, latest library version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.