How to add items in Firebase using react native - ios

I'm still a newbie in react native and it's also my first time using Firebase database. So, using the official documentation i've managed to add items (composed only by title ) in the database but only using an alertIos.
Now I need to navigate to other screen, add items and I need the items themselves composed by title and genre for example. Thank you
PS: here is the tutorial that i used : https://firebase.googleblog.com/2016/01/the-beginners-guide-to-react-native-and_84.html
Also, I used a workaround when accessing to the Firebase database : i changed the rules to read and write for everybody (thing I'm sure is wrong), so can you help me access in a secure way.

Related

Firebase instead of rails for backend

I’m used to developing in rails for the web. So when I want to fetch records matching specific fields and then manipulate the data as I see fit, I can easily do it with Rails.
However, I am now developing an Expo app and want to give Firebase a try.
To do what I described above, can that be achieved entirely on Firebase? Is it done with Cloud Functions?
Is there something I am missing about Firebase in that respect I should know?

how to create a flutter app like wikipedia

I'm trying to create a Flutter app like wikipedia where a user can search and display the information but I'm don't have a lot of backend knowledge so it'll be appreciated if someone can guide me what I should do or learn in order to start this project.
The reason I'm trying to build this app is for my ethnic group. I want to have an app where we can read articles/information in our own language.
My goals is basically get all the article or documents about our cultures from other people and store in one database and display it in my app.
I'm not really sure where will be the best place to store all the article and retrieve that in Flutter. I've been looking Firebase but I'm not really sure if I can store the whole articles and display it.
Just to give you an idea, this is minipedia app and I'm thinking about creating an app just like this.
Any suggestion will be really helpful. thanks
You can use Firebase Firestore for this project. I've used FB before and to the best of my knowledge, there shouldn't be any problem with doing what you mentioned above.
I've been looking Firebase but I'm not really sure if I can store the whole articles and display it.
Yes, you can store whole articles on Firestore and retrieve them whenever you need them. Each document has a maximum limit of 1MB, which is approximately 1 million characters but should you need more space(which I highly doubt), you can always separate your articles into chunks.

Making UI elements programmatically in iOS using Xcode in Objective-C

I am trying to parse json data and convert it to form in iOS. I am successfully able to parse data and display it, however, i want to fix the UI and make it look more like an iOS form, perhaps using tableviews, etc.
How do I approach this? should I just use a tableviewController or use a tableview? (the fields are dynamically added, so I have no idea what type and how many fields I will have, until I make a call to the API and fetch the data from the json that I get)
Are there any easy to use libraries in iOS that I can use?
That's not how UI design works on iOS. For the specific example that you mentioned of a tableViewController getting fed from an API... You'll create a tableViewController and you will design a demo cell.
Then you will fetch the results from your API, parse it. And you will iterate over the results returned by the API, inside that iteration you will programatically create the table cells (thus ensuring that you are creating as many tables as you need).
Nevertheless this is a extremely vague question, and besides briefly explaining how this whole thing works on general terms, there is not much more I can do without you posting the code you have so far.
Allow me to refer you to this tutorial by NSCookBook that although old is gold when it comes to these things.
Regards,

Instant searching using the UISearchBar/UISearchController in swift 3

I am trying to add the instant search functionality into my existing controller using the UISearchBar or
UISearchController
When user enters 3 characters on searchbar, should start fetching the data & show in the tableview. For that I added the API call on searchBar Delegate, but it takes time to fetch the data , while user again start entering the data, each time user enters a character , it hits one api.
What approach should we follow to achieve it ?
Is there any good library or open source to do it?
You can use InstantSearch iOS, which is an open-source library providing UI components to help you easily build instant search experiences on iOS with Algolia.
It is available on GitHub. See for example the InstantSearch E-commerce app:
You can start with the Getting Started Guide which will take you through the main steps to use the library.
The example application is also a great addition to the guide as it’ll help you get an idea of what you can build with InstantSearch iOS.
Disclaimer: I am the author of InstantSearch iOS

Xcode 6 - iOS8: Allow Master User To Update Information

I was wondering if anyone could point me to any useful tutorials on allowing a master user to update information for their app. I am looking into creating an application for a local restaurant and I want the owner to be able to update information like the soup of the day and such by themselves.
I have been looking into JSON and CMS for this, but I am unable to find any useful information regarding iOS 8 or xCode 6. If anyone could provide me with this information, or any other suggestions on how to achieve this I would be very grateful!
(I am using Swift not Objective-C)
This is not a code issue, rather it is a development concept issue. You have many choices including making an API that is updated by the restaurant. The app then connects to the API and gets the recipes. If you feel you need to do this via the App make a special username that is allowed access to modify the menu. This can be accomplished via matching username exactly or via using a regex. It all really depends on the structure of your app platform.

Resources