Comments (4)
Thank you @crutchcorn !!! We are trying the new version as part of our pre xmas RN upgrade
from react-native-responsive-ui.
Agreed - also this results in a really annoying eslint error even if you have transpilation because package.json
points to index.js
rather than index.ts
.
I fixed with patch-package
:
To include package.json
which is normally excluded I needed to run
npx patch-package --exclude 'nothing' react-native-responsive-ui
after making the edit.
diff --git a/node_modules/react-native-responsive-ui/package.json b/node_modules/react-native-responsive-ui/package.json
index 1de19ec..2e57720 100644
--- a/node_modules/react-native-responsive-ui/package.json
+++ b/node_modules/react-native-responsive-ui/package.json
@@ -55,7 +59,7 @@
],
"homepage": "https://github.com/wcandillon/react-native-responsive-ui#readme",
"license": "MIT",
- "main": "dist/src/index.js",
+ "main": "src/index.ts",
"name": "react-native-responsive-ui",
"peerDependencies": {
"react": ">=16.8.3",
from react-native-responsive-ui.
I'm back again! This now caused crashes in my react-native-web migration so I had to add support for Typescript to webpack. Looks like RN Metro Bundler supports TS out of the box.
from react-native-responsive-ui.
This issue should now be fixed in 2.1.2
. Please mention if this issue persists in future projects
from react-native-responsive-ui.
Related Issues (20)
- Update to React 16 HOT 4
- Strategy for sending base64 to the DB? HOT 1
- Suggestion: Modify ResponsiveStyleSheet to behave like Platform.select HOT 5
- orientation query not respected? HOT 1
- Can you use the library with vanilla JS i.e. without flow? HOT 3
- Typescript Support? HOT 1
- Push latest version to npm HOT 1
- Error for ResponsiveComponent in iOS and Android HOT 17
- MediaQuery dimensions? HOT 1
- When I use typescript to develop, always met error by calling useDemission. HOT 5
- TypeError: TypeError: (0, _reactNativeResponsiveUi.getStyleSheet) is not a function. HOT 3
- react-native-web official support HOT 3
- Provide @types for Typescript HOT 7
- Warning: componentWillMount has been renamed, and is not recommended for use HOT 1
- No matching version found. Unable to install react-native-responsive-ui > 2.0.0 HOT 2
- Update releases tab HOT 1
- getStylesheet causes media query styles to leak into original stylesheet
- [Discussion] v3 API Changes
- removing lodash dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-responsive-ui.