Sub menu in nativebase react native - react-native

Can anyone please let me know how can I create Drawer with submenu in react native using nativebase? I tried few things but they are not working as expected.
Something like this:

Few working examples posted on https://github.com/GeekyAnts/NativeBase/issues/1483
with desired output

Related

Something I can use with React Native for web

I like React Native's some features like Flatlist, Modal, Animation. I wanted to develop for web with React Native or Expo. I use react navigation but have 404 errors in refresh pages. I also want When user put www.mywebsite.com/post/postid, it will go directly into postid's page. I tried react-router-dom with HashBrowser. Not great! I kind of want something better than hash browser. What can I use? Any advice please.
I use also react-native-web and react-navigation. If you want the react-navigation to work with the links correct, you must set up the config object like the documentantion
If you don't set up correctly the config object, react-navigation doesn't throw errors in your console, but it doesn't work right!
The question was before 3 months, but I hope this answer helps someone, with the same problem!

Nooby question for a splash screen in React Native

Trying to make a splash screen for my react native app using this guide: https://medium.com/#appstud/add-a-splash-screen-to-a-react-native-app-810492e773f9
Trying to type this code in: Code image
and I'm getting errors. Could someone please explain what the "create:" and "inputs:" mean and why they're grayed out?
Thanks
They are the explanation of the code parts. You put the inputs where it says inputs. Create is the block that you put your code that you want effect to trigger. You can read the documentation about the react hooks so you will have a better grasp before you try to jump into using them; React hooks

React Native syntax highlighting

I want to use syntax highlighting of code for my React Native app, but i can not find it. I have found syntax highlighting of code only for react, but not for React Native.
I want to find smt like this:
Let's say that i have html code that i want to highlight, how i can do this, without using render-html.
If you did not understand, this is syntax highlighting: https://pinetools.com/syntax-highlighter
And i need to have it for React Native. Is there any npm or yarn packages for this?
Help me please
Maybe react-native-syntax-highlighter?
GitHub link:
https://github.com/conorhastings/react-native-syntax-highlighter

React Native | text highlighting

I am working on a react native app.
in one page of it I wan't to make a highlighting option like the following picture
but I can't customize the text popover to reach this behavior,
after many trials I reached the following result
Any idea how to add highlighting functionality?
Try using react-native-highlight-words library . Might be it solves your problem
Just use a webview and use the injectedJavaScript prop

Create hyperlink in react native for Android

Update: looks like this is implemented now with IntentAndroid! https://facebook.github.io/react-native/docs/intentandroid.html#content
-- original post --
I am writing an Android app with React Native. I would like to display a hyperlink that will launch the user's default browser and open the linked URL. How can I do this?
There is LinkingIOS for iOS apps, is there some equivalent for Android?
Or am I going to have to create a component that wraps something like this (Java):
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
startActivity(browserIntent);
OK it looks like what I wanted isn't a react component just yet, but I found this awesome component that is exactly what I want: https://github.com/ivanph/react-native-webintent/