Skip to content

unclear imports for style creating issues in latest react native #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
singhagam1 opened this issue Oct 17, 2024 · 1 comment
Open

Comments

@singhagam1
Copy link

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
@SamiChab
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants