rn-material-ui-textfield
rn-material-ui-textfield copied to clipboard
unclear imports for style creating issues in latest react native
trafficstars
Expected Behavior
The import statements in the library should be specific, In latest react native, 0.75 for my case, as some files have the import as import styles from './styles'; it picks the styles.native file instead of styles.js for both android and iOS platform and hence distorts the UI.
Actual Behavior
It should pick the file according to the platform
Steps to Reproduce the Problem
- Install the library in the latest react native 0.75
- Take a text filed and give it a label, it is not visible, unless you give it some space (where some is press the space bar before the label atleast 30-40 times) example - " somelabel"
- Or you can inside this library, update the style import statement to import styles from './styles.js';
Specifications
- Version: 0.75
- Platform: both android and iOS
In case it helps someone, here's a patch for the 1.0.9 version: rn-material-ui-textfield+1.0.9.patch