React Native support Display P3 color gamit ? or only srgb? - react-native

When we were designing our app we used the sketch display P3 color profile, once we implemented everything in React Native we found that our colors were not the same as the ones designed they seem less lively. I was wondering if anyone knows if there is a solution to this?

I have run into this too. What I ended up doing was convert the colors in Sketch to the sRGB values making the app match the Sketch file.
In Sketch:
Press ⌘+Shift+K This will pull up the color profile switcher
Change the color profile to sRGB
Click Change Profile
Choose the Convert option (or assign if you want to assign RGB values)
You document should now be updated with the values you can use in your app that will match what you see on screen.
This article helped me https://medium.com/fueled-engineering/practical-colour-management-for-app-makers-2b5174c1b8cb

Related

showing mini graphs in listview react native

I need to show data in graphical representation like stock app in itunes.
There are many libs but I cant find one giving such functionalities.
Can Any body suggest how to implement.
Try using React-native-svg-charts
which you can control size and colors
here is an Example

How to apply color to lottie-react-native icon

I have gone through the complete documentation of lottie-react-native but i didn't get any example or description that talks about setting color to an icon. But i finally an issue issue which suggests as follows,
colorFilters={[{
keypath: layer,
color: colorHex
}]}
I am not sure about following things here since I am very new using such a icons,
1.How to find out that how many layers are there in an icon?
2.Is there any property to set single color for whole icon? If so what is it?
Though this question is specific to lottie-react-native, I am seeking help here as well. Because if any of our users has already used this package, They may help in this regard.
Thank You.lottie-react-native
Thank you.
If you want to use other library, you can go for vector icons.
Try this library which provides range of icons.
https://youtu.be/BjrlrGy_HaY
This includes installation of vector icons npm package and demonstrates the uses of vector icons library.
Also you can change the size and color of whole icons.

Setting ApplicationBarButton.IconUri with icon from Isolated Storage

I am working on windows phone application in which i need to change ApplicationBarButton icon dinamically, for example to show current date like in default Windows Phone Calendar app. Regarding to this article, we can use only png images previously added to solution and reference to them with relative Uri.
It is not a problem for me to generate correct png image (this way and using ToolStack C# PNG Writer Library) and save it to isolated storage, but when i'm initializing AppBarButton with absolute Uri to this image and trying to add it to ApplicationBar, my app throws ArgumentException.
Am i doing something wrong or i just have to draw 366 icons and add them to my project? :)
Thanks in advance!

ImageResizer adjusting white balance

Been playing with StudioJS wrapper for ImageResizer. Can ImageResizer adjust the white balance relative to a color? Ultimately, I want the user to be able to click an area in the image that should be white, and the rest of the image adjusts.
I see the Auto Balance functionality that uses the AdvancedFilters plugin, I guess I want to take it a step further.
No, ImageResizer doesn't current support adjusting relative to a color. However, if you wanted to implement said feature, it would not be difficult.
You could modify AdvancedFilters.cs, inserting an IF statement near line 150, and add support for a new command, such as "&a.white=rrggbb".
Simply provide the RGB values to the LinearLevels class to perform the scaling on the image.
http://www.aforgenet.com/framework/docs/html/29bf1191-47c9-314b-eb8d-bea3f903ac28.htm
If you like the result, and want to share it, send me a pull request on GitHub or e-mail me the code snippet. If it passes testing, it might make it into the next release.
Client side, you might find this library helpful for selecting a color from an image.

How to get system icons in iOS

I want to use icons like opened/closed folder in my table (UITableView)?
UPD:
For example, in Java you can get a standard image "folder" and use it in the FileTree:
new
DefaultTreeCellRenderer().getDefaultClosedIcon()
And also can use the constants of L&F (colors, styles, icons).
In the iOS, I found only these standard icons.
But not folder icons...
I'm not quite sure exactly what you want - the folder icon from iOS? Could you explain a little better?
If it is a folder icon that you want, there's no quick way to get it from code - doing so would use private API's and your app is likely to be rejected from the app store.
If you want something like a folder icon, a good way to get it would be by taking a screenshot of the iPhone simulator and editing it to the right size etc.