React native - firestore array and map - react-native

Problem with reading and summing values from the list of products.
hello. I am new to react native. I don't know how to access the data. I've searched but can't find a solution. I have a collection 'products' and in it is the name of the list of products and in the array there are individual products and price. What should the query look like in general to fetch individual lists and add prices in individual lists?
enter image description here

Related

How to insert custom code on Collections List in the products Shopify

I'm Building a custom collection page in shopify, I want to show some custom code between products it can be pictures or text. How do I achieve that? can anyone help out?
Example with picture and the link here,
This is where I want to apply a similar layout. https://junghans.com.my/collections/best-selling-collection (Pass: 12345)

Liquid - get product ID and display custom/specific information dynamically

I am trying to add a small 'lockup' / promo to a page that loads information dynamically based on page.metafield information. Replacing images, video ID's etc. Which all works just fine.
My client is asking for a small area to display a product that relates to this dynamically changing content and I am struggling to come up with a good way to do this.
The current setup is that we have 30 pages with a set of 8 metafields each page. Each one of these pages must show a different , single product with an image, title, price, buy button and another button that links out to a partner site.
I can create snippet and load almost all of this info through metafields manually (price, title etc the client could just add to another metafield) but I would prefer to load a product to pull this info so it can be added to cart. Although I can add product data manually, I still don't actually know which product will get added to the cart, because I'm on a 'page' not a 'product'.
The products themselves are using a custom template that is different to the rest of the site so that seems like its not an option. The template for this content page is just 'page' but surely I can call the product object someway? If the client entered a product ID in the metafields, is there a way of pulling that IDs data easily?
Whatever you mean by pulling ID's, but there are a couple of ways of dealing with this. One, you have a Storefront API token, allowing you to freely and securely call Shopify with JS and get back all the data about the ID you're interested in. Or, you have an App installed in the store, in which case you can setup and callback an App Proxy, providing that ID, and getting back all the info you need. Lots of options!

Dynamic react-redux approach

I am working on an app that is a report that has multiple participants attached to it. I am using react-redux and my question is how do I manage dynamic number of participants in redux. I have a wizard that stores all info in redux store and at the end of this wizard I want user to tap on Add button in order to add users to this report. I want app user to add as many reprort participants as they want.
Update:
My app has a wizard with 3 steps. First two steps are shown on screens with bunch of checklist items. User checks the boxes and I store everything into the redux store via same reducer. Final step is to add participants of this report and they can be one or many. I have a screen for that but there is only place for one person in the redux. (Each variable is already filled with info from the first paricipant). I need a way to be able to dynamically add participants to redux. At the end I want to store all of this to database. I have one table for the report and one table for participants.
I am new to react native and redux. This is my first app in react

Showing Ads GridView React Native

I am working with GridView in which i have to show two items in GridLayout row count of 2 in React-native IOS.
The problem is that i have to show Ads after four items (i.e. 2 rows) that will cover width of mobile.But due to Span count the ads are also coming in Grid layout.Any help would be appreciated !!.
Want Output like this:-
I am using this react native library GridView but not able to implement logic for random data to show one ad after 4 items using DataSource.
Here is the Snack for the same created from the example given by the author in GitHub. It is doing what exactly you asked for.
A while loop can be used in _createRandomData function to splitting the layout and putting ad in between.
Snack Preview

SiteFinity 7.1 custom content items and grouping

We have a list of faculty and units for a SiteFinity 7.1 site. We have these as custom content items in the site, because we are programming against them and building a few widgets around them.
However, we also have news about these faculty and units, and we'd like to use the existing news items in SiteFinity.
How do we easily tie faculty and units (custom content items) to news items (another content item baked into SiteFinity)? I wasn't sure if we create classifications that list faculty and units, and use these as the grouping mechanism? Or is there an easy way to tie two content items together? 
It kind of depends on how you're going to (or how you want to) display the data at the end. Here are a couple of different ways to achieve what you're after.
You're planning on using the stock News widget to display the content.
If this is true, using a custom taxonomy would be pretty easy in this case. Here's a video that outlines this method.
You're planning on displaying the news items in close proximity to one of the custom content types you've created.
In this case, adding a related data field to the custom type would allow you use related content items with widget templates.