rn-material-ui-textfield icon indicating copy to clipboard operation
rn-material-ui-textfield copied to clipboard

unclear imports for style creating issues in latest react native

Open singhagam1 opened this issue 1 year ago • 1 comments
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

  1. Install the library in the latest react native 0.75
  2. 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"
  3. 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

singhagam1 avatar Oct 17 '24 20:10 singhagam1

In case it helps someone, here's a patch for the 1.0.9 version: rn-material-ui-textfield+1.0.9.patch

SamiChab avatar Oct 28 '24 23:10 SamiChab