Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native - What is and isn't possible with React Native?

I'm a web developer and have been playing around with React Native for a few days now and slowly getting the hang of how things work. I want to build a project but I don't even know if it's possible at this point? One side of my question pertains to the UI elements. I see a lot of native (Obj-C and Swift) apps doing this parallax hero space thing:

Example: https://github.com/Vinodh-G/ParallaxTableViewHeader

Is something like that possible in React Native? If so, how? From what I understand, doing something like this requires the UiTableView, which RN does not have.

Secondly, I want to use some native things like the Map View. I've seen the notes on using RCTBridgeModule, but since I have zero experience with Obj-C, I dont know what they mean when they say to place this obj-c code [here] and then place this js [here].

The examples FB has provided are great for learning how to display content from an api, but when it comes to integrating with obj-c, it becomes a little fuzzy due to the lack of obj-c experience and the file structure related to it.

Am I the only one experiencing this? This seems like a great framework and I am very excited to learn it, but there still seems to be a void for the obj-c noobs.

like image 513
user1063192 Avatar asked Nov 10 '22 16:11

user1063192


1 Answers

I think this library is right for you first - react-native-image-header-scroll-view

You have 3 ways to use native modules.

  1. If you use expo, it's pretty simple, they have their own collection of libraries to work with native modules that are easy to install. Documentation is here
  2. If the expo doesn't suit you, you can still use Expo's library collection by installing react-native-unimodules. But you can also use any other third-party libraries to work with the modules. In this option, installing and setting up some libraries will additionally require recordings in the ios and android configurations.
  3. You can write your own implementation of the logic of working with native modules on java or object-c and link it all to react-native.
like image 197
Re Senpai Avatar answered Nov 14 '22 21:11

Re Senpai