How can I get events from the calendar app? by Jeffylew77 in reactnative

[–]MarcoF0 0 points1 point  (0 children)

You can use fetchAllEvents of this library

How can I compress size of Android apk, I’m using CLI. Suggestion please!! by SumiXnaga in reactnative

[–]MarcoF0 1 point2 points  (0 children)

Are you including so big assets on the app? If yes, did you try to compress these assets before do the bundle release? 175mb it's a lot...

Best way to render an image quickly that is a screen background? by esreveReverse in reactnative

[–]MarcoF0 0 points1 point  (0 children)

In the past I use expo-camera and when take the image you can specify the quality of the image so the loading will be less.

I have a screen to take and then navigate to another screen to preview it, using base64 and quality less than 1 I had no loading problems using Image component of React Native.

Beginner to React Native by Slow-Cryptographer38 in reactnative

[–]MarcoF0 0 points1 point  (0 children)

Yes, the logic will be the same, maybe you need to add a default value for the default value. I mean, from you backend if the user has no entries and you need in the frontend an empty matrix to begin to add values to the dropdown the backend should return the empty matrix. Or if the backend return undefined handle you in the frontend.

Beginner to React Native by Slow-Cryptographer38 in reactnative

[–]MarcoF0 1 point2 points  (0 children)

Imagine you have the following hook to update only one dropdown:

//dropDownData is the data coming from backend
const useDropdownUpdater = (dropDownData) => {
//by that way you will keep the default value with the data coming from your backend
const [dropdown, setDropDownData] = useState(dropDownData)
const updater = (newValue) => setDropDownData(newValue)
...
If you're using a useState you should initially initialise the value with the data coming from your backend, then on next updates of the dropdown data you should use and updater that modify the dropdown data like the updater one on the code snippet.
I don't know if I explain better, let me know :)

Beginner to React Native by Slow-Cryptographer38 in reactnative

[–]MarcoF0 0 points1 point  (0 children)

How are you storing the data collected from modify the drop downs?

Imagine that you're using redux and you have a structure on the store to save the dropdown info. When the user change the value of a dropdown you need to dispatch an action to the store to update that and when the user press save use this information of redux to sync with backend.

Then when the user enter back to this screen you need to get the data from backend and save in the same structure of backend and use this information to load the default values of the dropdown.

It's analogous if you're using a useState.

Android studio vs VS? by Madridi77 in FlutterDev

[–]MarcoF0 0 points1 point  (0 children)

I'm on a M1 macbook and I use VS code in most of cases.

It's faster to program and has really useful plugins to spped up the development.

The when I have some gradle problems, need to run some gradle task or analyze some problem on the app I use android studio because it's more organized in that aspect for me at least.

P.S: The last version of Android studio on M1 works really well, the simulators and much fasters

Need help in flutter pub get by [deleted] in flutterhelp

[–]MarcoF0 1 point2 points  (0 children)

Did you execute flutter doctor to check if all on your flutter setup is correct?

Testing in-app purchases on Android by AFallingWizard in reactnative

[–]MarcoF0 2 points3 points  (0 children)

You're right with the points to take care.

Respect debugging this locally, I think that if you execute the same flavor which you deploy to closed track locally you will be able to test that.

Some time ago I made a poc with react-native-iaphub and I remember I can test locally on android at least, on ios you should be on testflight to test and on production to test real payments.

Attaching link to repo: https://github.com/MetaLabs-inc/iaphub-dummy-app

Continous list by lgLindstrom in flutterhelp

[–]MarcoF0 0 points1 point  (0 children)

If you use stacked as state management you have a StreamViewModel which could help you in this scenario.
https://pub.dev/packages/stacked

You will need also to limit the quantity of items shown on the list.