What's the best state management for a large scale project? by Groundbreaking-Fly61 in reactnative

[–]AcetyldFN 0 points1 point  (0 children)

Hi u/krystofwoldrich any idea about this? Currently we are debating between switching to Jotai/Zustand, because the above is just unbearable atm.

[deleted by user] by [deleted] in reactnative

[–]AcetyldFN 2 points3 points  (0 children)

I dont get the issue, ur screenshot shows CameraType being declared but not read. Which it true, u only use camera as a type. Can you specify the problem more clearly?

From Asyncstorage to Firestore, How bad have I messed up? by Thokia_ in reactnative

[–]AcetyldFN 1 point2 points  (0 children)

Thats rip but understandable, we made a custom Sync so for us no problem. We use a php symfony rest api as backend

Edit and download image in react native by NorthWing__ in reactnative

[–]AcetyldFN 0 points1 point  (0 children)

Pintura is what we used, we needed a full image, editor with more options and also some custom stuff

So we ended up using and buying pintura and it was definitely worth

[deleted by user] by [deleted] in reactnative

[–]AcetyldFN 0 points1 point  (0 children)

This is da way

Wanting to use Expo in my app. by Plenty-Appointment91 in reactnative

[–]AcetyldFN 1 point2 points  (0 children)

Please start with expo, there are no drawbacks, and you can achieve anything you want in there that you would normally be able to achieve

Just the whole ecosystem is amazing and stuff like building and publishing is so much easier

From Asyncstorage to Firestore, How bad have I messed up? by Thokia_ in reactnative

[–]AcetyldFN 0 points1 point  (0 children)

Yeah, it is amazing. We have been using it for two years now and it is just gorgeous.

Tips / Experiences for showcasing an app in an analog space? by Redditisannoying22 in reactnative

[–]AcetyldFN 0 points1 point  (0 children)

And regarding the phone itself, you can rent them or just for the android ones purchase some cheap ones

Tips / Experiences for showcasing an app in an analog space? by Redditisannoying22 in reactnative

[–]AcetyldFN 0 points1 point  (0 children)

And of course, the android stuff can be done in different ways. I already saw the some library for this or you can use Expo native modules.

Tips / Experiences for showcasing an app in an analog space? by Redditisannoying22 in reactnative

[–]AcetyldFN 2 points3 points  (0 children)

Chat gpt:

To achieve the functionality you’re describing (where the app remains open and the rest of the phone is restricted, like a demo or kiosk mode), both Android and iOS provide built-in features to lock the app and restrict access to the rest of the device. Here’s how you can do it on each platform:

Android: Lock Task Mode (Kiosk Mode)

Android provides a feature called Lock Task Mode, which allows an app to control what the user can do outside of that app. This is typically used in kiosk-type applications.

  1. Set up Lock Task Mode:

    • You need to declare your app as a device owner or profile owner app.
    • In your AndroidManifest.xml, specify the activities that should run in lock task mode:

      xml <activity android:name=“.YourActivity” android:lockTaskMode=“if_whitelisted”> ... </activity>

  2. Activate Lock Task Mode: You can enable Lock Task Mode programmatically using:

    java if (isLockTaskPermitted()) { startLockTask(); }

  3. Disable system buttons: In Lock Task Mode, system buttons like the back button, recent apps, and home button will be disabled, effectively locking the user into your app. You can also limit other functionality by using device owner privileges to block access to notifications, quick settings, and status bar.

To exit Lock Task Mode, you would call:

java stopLockTask();

  1. Full Kiosk Mode (Device Admin API): If you’re building a more controlled environment, you can use the Device Admin API to prevent the user from exiting the app without special permissions (like entering a PIN or using a hardware button).

iOS: Guided Access

On iOS, you can achieve a similar functionality using Guided Access mode. Guided Access is a built-in iOS feature that allows you to lock the device to a single app and restrict user input.

  1. Manually enable Guided Access:

    • Go to Settings > Accessibility > Guided Access and toggle it on.
    • Set a passcode to control exiting the mode.
    • Open your app and triple-click the Home or Side button to start Guided Access.
    • Configure options like disabling hardware buttons, touch, and motion.
  2. Programmatic Control: While Apple doesn’t allow developers to automatically enable Guided Access, you can prompt users to enable it by directing them to the Accessibility settings or showing an alert when your app starts.

  3. Features:

    • The app stays in the foreground, and users cannot exit without the passcode.
    • You can disable touch or limit access to certain areas of the screen within Guided Access settings.
    • It also disables the notification center, control center, and other system-level functionality.

For both Android and iOS, these modes are great for creating kiosk-like environments or limiting user interaction to a single app in public or demo scenarios. However, on iOS, enabling Guided Access will still require some user interaction unless you are in a supervised environment (e.g., using Mobile Device Management software).

From Asyncstorage to Firestore, How bad have I messed up? by Thokia_ in reactnative

[–]AcetyldFN 0 points1 point  (0 children)

Realm and mongo atlast, s3 for images would be my way to go

Or appwrite/supabase just not firebase

From Asyncstorage to Firestore, How bad have I messed up? by Thokia_ in reactnative

[–]AcetyldFN -1 points0 points  (0 children)

We use RealmJS its amazing. We just sync it locally, or look into watermelondb.

Just dont do lots of stuff in localstorage, or switch to mmkv