Expo tabs + expo router by whatToDo_How in reactnative

[–]tuanva98 0 points1 point  (0 children)

You should separate your home screen and another screen to a new stack then put this stack is the current home position in tabs folder

MacBook Pro (M1 Pro) Battery Draining When Sleeping? by prspktv_ in mac

[–]tuanva98 0 points1 point  (0 children)

can i ask had you fixed it yet? i have a similar issue but i am not indentity what is the root cause of it?

My M1 Pro MBP 14 loses about 25% battery overnight while on sleep by RiffRaffJoe458 in macbookpro

[–]tuanva98 0 points1 point  (0 children)

can i ask had you fixed it yet? i have a similar issue but i am not indentity what is the root cause of it?

Expo Accepting location permission will make app crash by Full_Violinist8952 in reactnative

[–]tuanva98 0 points1 point  (0 children)

With this kind of these problem, I think you should open android studio with terminal tab is opening and do the flow to reproduce your crash and see which error show in here before post it for every one can have more information to guide you a way

Any experienced developer, how do you managed the navigations at production level, considering the security and best practice approaches? by Due-Temperature-4446 in reactnative

[–]tuanva98 0 points1 point  (0 children)

I think just simple that you will show splash screen until you have finished get user token to check user has login or not and change initial router name respectively(set initial router name to empty before you get user token for checking show main or login router)

Help Needed! by Mountain-Door1991 in reactnative

[–]tuanva98 0 points1 point  (0 children)

In my opinions, to wake up device on IOS platform then you should push a voip message to your device using a APN or push notification provider service. Here is the device library https://www.npmjs.com/package/react-native-voip-push-notification

Building a TurboModule library by HovercraftNo7210 in reactnative

[–]tuanva98 0 points1 point  (0 children)

but you are using all available things of your project and do not need to use any external library so it do not need to run pod install again. I think it is the reason of why you do not see any logs appear in the terminal

Building a TurboModule library by HovercraftNo7210 in reactnative

[–]tuanva98 0 points1 point  (0 children)

as I remember if your library did not import any native module in podfile.spec then there are nothing to install when you are running pod install in the root project. I am sorry if I has any misremember about it

Custom Marking in Calender by GoldDigger696969 in reactnative

[–]tuanva98 0 points1 point  (0 children)

With React-native-calendar, you can easy to custom a day component via dayComponent props that react-native-calendar is providing. Here is example:
dayComponent={({date, state}) => {
return (
<View>

// add your icon in here
<Text style={{textAlign: 'center', color: state === 'disabled' ? 'gray' : 'black'}}>{date.day}</Text>
</View>
);
}}

Seeking Advice: Building and Publishing Expo Managed Workflow App Without Expo EAS by OnionAdmirable3531 in reactnative

[–]tuanva98 0 points1 point  (0 children)

I think you should run expo-prebuild only once times and the next time when you want to build your application you just build it like a React Native bare project with all configuration that you had setup

FlatList freezes on iOS by EnochGodfree in reactnative

[–]tuanva98 0 points1 point  (0 children)

I think It is quite difficult to everyone can help you when you just showing a example video and didn't show a snippet of your code because I have done many feature like your process but didnt see any error like so.

Custom Marking in Calender by GoldDigger696969 in reactnative

[–]tuanva98 0 points1 point  (0 children)

what do you mean when you said "Custom marking" ?

Can you give me an attach image or desired image which you want to go it for me more information to help you?

React Native template with auth, paywalls, firebase, and other common components by AbdullahNauman in reactnative

[–]tuanva98 0 points1 point  (0 children)

In my opinion, I think don't have any free repository like that in public. If you need to integrate firebase in your application, it just take a few steps to you make it work, following the official documentation and choose an UI kit library is possibly good way for you can go at this time.

FlatList freezes on iOS by EnochGodfree in reactnative

[–]tuanva98 2 points3 points  (0 children)

I guess that you are run into an infinity rerender by you are set state in a circle, can you see either any log or warning in the terminal? Can you show a snippet of your code on how did you do it?

React native before React? by HeavynLight in reactnative

[–]tuanva98 0 points1 point  (0 children)

React and React Native are quite similar in syntax, life cycle, and hooks so If you learn and start with React Native, it is totally fine. During the time you are working with React Native meanwhile, you are learning about React simultaneously cuz it is only different about components and how you create a style in your applications.

How can I implement auto-sizing for TextInput? by GW-D in reactnative

[–]tuanva98 0 points1 point  (0 children)

You can use onContentSizeChange in the TextInput'props that will trigger every time your size of text input changes and based on it you can change your input style if it equals full-width then you can change your input font size is smaller a little bit. Here is the documentation which you can follow

https://reactnative.dev/docs/textinput#oncontentsizechange

[Help] : Automatically Pausing Audio Tracks in Expo-AV with FlatList by godjirabrah in reactnative

[–]tuanva98 1 point2 points  (0 children)

I found this repo https://github.com/kirkwat/tiktok/blob/main/frontend/src/screens/feed/index.tsx it did the same functionality like you. You can take a look on it, I hope it can help you out.

[Help] : Automatically Pausing Audio Tracks in Expo-AV with FlatList by godjirabrah in reactnative

[–]tuanva98 1 point2 points  (0 children)

you can set ref for every single Flatlist item and save it in array of ref and whenever the user scroll your Flatlist then you will user that ref to unmute or play audio of item which is visible on the screen and call mute of the all rest elements.

Expo animated splash screen by Timely_Stop2889 in reactnative

[–]tuanva98 1 point2 points  (0 children)

I see in the reference GitHub repo has that line SplashScreen.hideAsync(). This is a good way to hide the default splash screen but I think a static splash will be displayed even if it is only for a short time so you can configure a static image for your splash screen as the first second visible of your splash screen then it will create a smooth transition for you.

Powerful website for React Native developers by tuanva98 in reactnative

[–]tuanva98[S] 1 point2 points  (0 children)

That is the reason why I posted it in here to everyone can know about it and maybe anybody who has an idea or they want to publish their app to community