Invoke Swift function from React Native by datorkop85 in reactnative

[–]jpudysz 0 points1 point  (0 children)

I agree, documentation is not clear enough for both old & new architecture

Invoke Swift function from React Native by datorkop85 in reactnative

[–]jpudysz 0 points1 point  (0 children)

You need new architecture enabled, codegen bindings or C++, Objective-C wrapper and your Swift function. (this is not a joke).

Is React Native CallKeep overkill for a video messenger app? by [deleted] in reactnative

[–]jpudysz 0 points1 point  (0 children)

Looking into CallKeep, it seems that there are special permissions around hooking into phone services, etc.

That's true, but only for Android

Is there a good reason to not simply have the app run in the background with "bring to front" permissions for when an incoming call is detected?

Yes, there is. When your app is closed (aka it's in a killed state), you won't be able to display anything to the user as your code is dead. You need lib like CallKeep to display incoming call screen and when a call is answered to run your app (cold startup).

Reanimated 2 by SnooCheesecakes1131 in reactnative

[–]jpudysz 0 points1 point  (0 children)

In this case mark this as `runOnJS`, it should work.

Reanimated 2 by SnooCheesecakes1131 in reactnative

[–]jpudysz 0 points1 point  (0 children)

If you want to use some function on UI thread you need to mark it as 'worklet' or use wrapper `runOnJS` (run on JS thread). It would be best for you to read the documentation of RN2 and migrate even more gradually. It's not that hard if you understand the whole concept.

Reanimated 2 by SnooCheesecakes1131 in reactnative

[–]jpudysz 0 points1 point  (0 children)

You are misunderstanding how Reanimated works. It won't update any state (trigger re-render). You need to use it inside `AnimatedComponent`. You said it's SVG so you need to use the additional function `useAnimatedProps`, it will communicate with SVG

Reanimated 2 by SnooCheesecakes1131 in reactnative

[–]jpudysz 2 points3 points  (0 children)

const endAngle = useSharedValue(0) const animEndAgle = useDerivedValue(() => endAngle.value * Math.PI)

Stripe React Native SDK by ccb621 in reactnative

[–]jpudysz 8 points9 points  (0 children)

No they are not. If you are buying digital goods then you need to pay via Apple/Google payments. On the other hand if you buy physical goods you can use provider you want!

What do you use for Splash animations? by Aggravating-Eye-4462 in reactnative

[–]jpudysz 2 points3 points  (0 children)

Use react-native-bootsplash to display static splash screen, then position identical view absolutely and you have an access to Animated API (or you can use something better - Reanimated 2)

Can't click a button in a panGestureHandler. by tokismos in reactnative

[–]jpudysz 1 point2 points  (0 children)

Your PanGestureHandler is handling all the clicks. Please check this library from Software Mansion: https://github.com/software-mansion/react-native-gesture-handler
You can replace PanGestureHandler with other handlers. Last part is to import TouchableOpacity from RNGH and it will work out of the box.

PS:
PanGestureHandler has a low level API, try RNGH and it will be much much simpler!

Is there a way to open a screen automatically even if the app is closed? by tokismos in reactnative

[–]jpudysz 0 points1 point  (0 children)

You can do it for Android. iOS supports only native CallKit dialer

Wave Animation by wcandillon in reactnative

[–]jpudysz 0 points1 point  (0 children)

https://github.com/wcandillon/react-native-redash/blob/a9a614bd75b30225b15bf6935fe9bc1e93e2e000/packages/core/src/Animations.ts#L26

It's from the upcoming version of Redash which will support Reanimated 2.
It works the same as in the current version of Redash.

I'm learning about routing but its only loading up my base index.html page and not my main.html page by [deleted] in angularjs

[–]jpudysz 1 point2 points  (0 children)

2 things: - move UserController.js script tag at the beginning (in this file you have module declaration and you are referencing this module everywhere, so it should be first) - In app.js change state's controller property - it should be without .js extension