Closed BenGroot closed 1 year ago
:warning: | Missing Environment Information |
---|---|
:information_source: | Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console. |
This information is already attached.
Label "Needs: Environment Info" can be removed right?
any solutions for this? running into this issue now
@BenGroot @hannzern guys, did you find a solution for this?
Check this answer on StackOverflow
the solution from Maik Peschutter https://stackoverflow.com/a/65024470/11452286 and related blog https://nicholasmarais1158.github.io/2017/07/React-Native-Custom-Measuring may solve this issue
this discussion is more appropriate on Stackoverflow rather then Github
Github is used to report bugs/issues in facebook/react-native
If you head over to the docs you can read the info about Different component for ex. TextInput and their props for example selectionColor
https://reactnative.dev/docs/textinput#selectioncolor
if the prop selectionColor
does not behave as specified in https://reactnative.dev/docs/textinput#selectioncolor
then you can open an issue on Github to keep track of this problem and/or publish a pull request to fix the issue
currently we have some guides on how to implement your Native UI Component ..
BUT
this classes are not part of the public api for example like done with rails https://api.rubyonrails.org/
currently the are some generic guildelines but not clear specification for me to read
It is the responsability of the developer implementing the Native UI Component to read the reactnative java sourcecode, understand the reactnative framework built on top of Android Open Source Project and apply the required solutions
I think it makes no sense having a documented public api (like https://api.rubyonrails.org/) of our Java Classes to be then used by third party devs to implements their Native UI Components as we are making lots of changes in ReactNative so it would become outdated relatively quickly
In my opinion makes more sense that react-native developers contribute to react-native and understand the sourcecode, follow the changes in the framework...
We can not open issues on github like.. I inherited from ReactRootView
and the functionality does not work... otherwise we would risk having 10.000 issues in our repositories (hundreds of issues for each Public Java API/class)
The opensource contributors would invest time to read 1000s of issues that are not relevant for react-native, just generic discussions that belongs to StackOverflow
I believe this type of assistance is provided in StackOverflow with the bounty system or Upwork/Codementor hiring a freelancer that assist you in your work.
I believe react-native developer needs to be a specialist and needs to have good knowledge of the OpenSource project. In the end we can not document every API and every method of the framework, it is easier that you contribute and learn the sourcecode rather then investing time to write step by step guide
This is my experience, I contribute for 6 months to rn and I can say my understanding of react-native really improved. I believe I will reach full understanding of ReactNative and basic understanding of Android OpenSourceProject sourcecode in August 2021.
Thanks :peace_symbol: :pray:
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
any solution?
you need to look into the react shadow node measure logic we over-ride onMeasure with the react shadow node
an example of implementation you can find it here https://github.com/fabriziobertoglio1987/react-native-improved
Description
I have issues with React Native respecting the height of an Android Native UI Component. Below I have created a very simple use-case to demonstrate the issue.
React Native version
Steps To Reproduce
Add the ViewManager via a ReactPackage to the Packages list.
Bind the native view in JavaScript:
Expected Results
When running this code nothing is shown. I actually expected that the height of the Android View would be reflected in React Native. Apparently this is not the case. I have tried this with different native view types, with no luck.
After adding a fixed height with style={{height: 100}} the view is shown at the provided height.
Height "auto" doesn't work either.
I have found similar issues but they are all more complex. My example should work out of the box I suppose.
I hope that someone can tell me what I'm missing.
Snack, code example, screenshot, or link to a repository
Check-out this repo which demonstrates the issue: https://github.com/BenGroot/react-native-native-ui-component-issue