Prefix attr value to prevent conflicts #2089
Comments
Can you send me the link of this sdk? Does this sdk uses react native camera? |
This is the sdk - https://github.com/square/react-native-square-reader-sdk I don't think it uses the camera for taking photos, but it does do image uploads for logo's and product photos. Either way, I though it would be much easier for libraries to prefix their variables to prevent duplicate entries. |
What if another library conflicts with the prefixed version? This can’t scale, we won’t change because of this reason |
You would do something like react_native_camera_aspectRatio which would be a safe bet to never conflict. |
aspectRatio={props.sdkAspectRatio} |
Feature-Request
Describe the Feature
I recently ran into the issue of a conflict with the attr value aspectRation where the square sdk also had an entry however with a different format.
Possible Implementations
It would be nice to prefix any attr values to clearly identify they belong to react-native-camera and prevent conflicts with other packages.
Related Issues
The text was updated successfully, but these errors were encountered: