Closed thanhloc-17 closed 1 year ago
having same issue on react native v0.70 .
Me too!
up
any news on this? @ethanshar
Same on my side. I get key and ref as the only two available props
It is happening on some imported (checked on Text
and Image
as of now) components from the library
import { Image } from 'react-native-ui-lib';
However if I import from:
import { Image } from 'react-native-ui-lib/src/components/image';
Props show up properly. So there must be something wrong with the way the components are being exported from some index
Using react-native-ui-lib
v6.22.1
react-native
v0.69.6
any updates or hints on what might be wrong?
possible duplicate of https://github.com/wix/react-native-ui-lib/issues/2202 ?
same issue here
up
up
Issue still persists on RN 0.70.5 and react-native-ui-lib: 7.1.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi, is this issue still relevant? I don't experience it
I still experience it on 7.3.5
It looks like the components is losing props type.
Hi, is this issue still relevant? I don't experience it
Could you share your tsconfig.json
please? We may have to add something to it to make it work.
Starting a new project from scratch and installing the lib doesn't work for us.
A workaround I found was to remove the global type ThemeComponent
and place it in an export
statement. But that seems like something that will never be in the official repo.
I am still looking into it and will let you know if I can find something else to fix it.
Edit: I noticed that generated d.ts
files don't have any reference to ThemeComponent
.
Maybe that is the problem here.
my tsconfig below:
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true,
"baseUrl": ".",
"typeRoots": ["./node_modules/@types", "./@types"]
}
}
p.s: I defined global ThemeComponent but it doesn't work.
Hi, is this issue still relevant? I don't experience it
Could you share your
tsconfig.json
please? We may have to add something to it to make it work. Starting a new project from scratch and installing the lib doesn't work for us.A workaround I found was to remove the global type
ThemeComponent
and place it in anexport
statement. But that seems like something that will never be in the official repo. I am still looking into it and will let you know if I can find something else to fix it.Edit: I noticed that generated
d.ts
files don't have any reference toThemeComponent
.Maybe that is the problem here.
I was right, it turns out that if you define your types in d.ts
files, they will be excluded from your build. The solution to this would be to move the global types to imported types.
Should be fixed with the above PR
Any news? Still experience it on 7.6.0
a885dfdb675025fd03d47119834f649462e056a4 was from Jul 24, 2023 and 7.6.0
is from before (July 20th), so we're still waiting for a new release.
Should be fixed in version 7.7.0
that should be released next week
This problem occur when I update new version or RNUILib, then I type some prop and VSCode not suggest any props
With the others package, the IntelliSense still working well.
Thanks