I am trying to do something like this, to put a Text beneath the imagebackground in react native. It does not show up, for some reason, i do not know what and why its behaving so,hence i decided to come and ask on here.
My Code is looking something like this
As you can see, it has it, and it does not show up on the app.
Please How do I go about something like this.
Related
I am new to react-native. I want a toggle button with 2 text blocks. How this can be achieved with react native?.
The toggler should animate when clicking buy and sell texts respectively.
Following is the image reference for the design.
You can try this library.
This does not match the design exactly but it's a toggle with two text blocks. If you want something that looks exactly like your image I'm afraid you will have to build it yourself. You could use the mentioned library as a starting point.
I saw a package for bottom navigation for Flutter which looks very nice.
Curved Navigation Bar (Flutter)
Basically, it will look like this
I am trying to replicate it in React Native (UI first, then will work on Animation) but not successful. Is it actually possible to replicate this in React Native?
The closest I can get is as shown in this image. However I used 4 different shapes positioned as absolute to achieve this.
This image differentiates the shapes I used (Gray, Orange, Red and Blue) to form the navigation bar.
Please advice me if there is a way to make this perfect (better without the workarounds like I did).
Thank you very much.
The close approach is to use Views like this.
Mask off the red part on yellow or do apply same background color to red. It will look like this.
Since I couldn't found how to mask it, I just applied background color to the red color View.
Then you can use animations and interpolation to move the entire shape on the click event.
And the final product will look like this.
I've published the same on https://www.npmjs.com/package/rn-curved-navigation-bar
Or you can check out and clone the project on github
There is library react-native-tabbar-interaction , you can have a try with it. Look similar as you need
I am trying to build a language selection picker in react native which has a picture of the country's flag next to the label, like this:
The icons have to be images and not unicode. I've had a look around but there doesn't seem to be anything available. Does anyone know of anything I can use to create this?
If nothing can be used then I will create a custom picker, I aim to make use of a ScrollView to handle the scrolling but I am not sure what I can use to replicate the rotation effect of the native iOS picker, so if anyone can help me with this also I would really appreciate it.
You can try this:
https://github.com/xcarpentier/react-native-country-picker-modal
It's not inside a native picker like your screenshot, but it should do what you are asking for.
You can use emoji by copy from online emoji website(many available on internet) and add picker item code as below,
<Picker.Item label="🇫🇷 France" value="fr" />
I'm following this guide to create some animations to my app and thought about writing a very light not distracting animation to my tab bar. I've searched apple guidelines but didn't saw anything against it, yet, I don't think I've ever seen an app doing something similar. Is that because it's not allowed or is there another reason I'm missing?
Any one knows an app that does something similar?
I'm using a simple slide in/out effect for the tab bar in my App.
No problems in the review.
The code I'm using is at https://stackoverflow.com/a/5272497/725594
In Nokia S40 the search field for the contacts is looked like this
This TextField is really interactive, if I put some text the magnifier will change into x Button. I've tried to create the TextField in LWUIT and override the paint methods to put the magnifier image but it can't use as a button.
Are there any component I can use to recreate something like this (Especially with LWUIT)? Or maybe are there any ready-to-be-used component from Nokia to create something like this?
Best Regards
You can do something similar to that, but it won't look like the native SearchField, but it will work fine.
What you can do is this.
Create a container with a boxLayoutX and put inside it a TextField and a Button. When you capture that the TextField has text inside, change the Image attached to the Button to a X and here it is. You only need to implement the functionallity of the Button.
TextField has a setHintIcon method allowing you to do just that.