profile
viewpoint
Daniel dan-lee Germany typeof undefined

mosch/react-avatar-editor 1643

Small avatar & profile picture component. Resize and crop uploaded images using a intuitive user interface.

dan-lee/glamor-jss 14

Use glamor flavored CSS with jss under the hood…

dan-lee/react-minimal-starter-kit 8

A minimal tool chain for creating React applications without all the noise.

dan-lee/react-intl-enhanced-message 7

Enhance formatted messages as rich text with react-intl

dan-lee/css2js 4

Easily convert CSS declarations to JavaScript inline styles

dan-lee/jquery-simpleTableSort 4

Easy way to sort your tables with jQuery

dan-lee/500-server 2

Server based on Node which will answer every request with a 500 status 🤖

dan-lee/stayOnChannel 2

Do you want the old YouTube channel behaviour back? Here's the solution. By clicking on a video on any channel you will stay there without being redirected to the video page! -- This is a Google Chrome extension.

dan-lee/elements 1

Elements is a set of carefully crafted, composable React UI components, designed for the Allthings Platform.

issue openedreact-navigation/react-navigation

gestureResponseDistance has no effect in Screen options

Current Behavior

I created a Modal and set a gestureResponseDistance which works fine. On particular screens I want to change this value though, but it has no effect when I set in the options prop on the Stack.Screen component.

I also tried navigation.setOptions(…) in the screen itself but I am only greeted with:

Warning: Cannot update a component from inside the function body of a different component.

Expected Behavior

The gestureResponseDistance should change on screens where I pass the option.

How to reproduce

See Snack: https://snack.expo.io/@dan-lee/healthy-crackers

I want the second screen (with the Close button) in the modal not to be draggable.

Your Environment

software version
iOS 14
@react-navigation/native 5.7.6
@react-navigation/stack 5.9.3
react-native-gesture-handler latest from expo snack
react-native-safe-area-context ^0.6.0
react-native-screens latest from expo snack
react-native latest from expo snack
expo 39.0.0

created time in 15 days

pull request commentoblador/react-native-vector-icons

Support FontAwesome 5 Pro Duotone style

I think this would be a fantastic addition and I'd be happy to try it out, if you can tell me how?

hampustagerud

comment created time in 16 days

starteddooboolab/react-native-iap

started time in 17 days

startedterrysahaidak/react-native-gallery-toolkit

started time in 19 days

issue commentPolidea/react-native-ble-plx

[iOS] Scan - BleError: BluetoothLE is in unknown state

We see the same problem, it happens when I change anything outside React code. Only restarting the app fixes this. Do you know when and how different lifecycles of JS code and native parts can cause a problem?

ad-boschung

comment created time in 23 days

issue commentlucasferreira/react-native-flash-message

renderCustomContent doesn't work

This needs to passed as a prop on the FlashMessage component:

<FlashMessage
  position="top"
  renderCustomContent={(options) => <Text>Test renderCustomContent</Text>}
/>

One problem I see is that the message is still rendered, even if you pass your own render method.

valery-lavrik

comment created time in a month

startedsupercharge/promise-pool

started time in a month

startedisiahmeadows/proposal-try-expression

started time in a month

starteddoasync/trace-router

started time in 2 months

startedMananTank/radioactive-state

started time in 2 months

startedkentcdodds/stop-runaway-react-effects

started time in 2 months

startedgorhom/react-native-bottom-sheet

started time in 2 months

startedromefrontend/rome

started time in 2 months

issue commentPolidea/react-native-ble-plx

State gets Unsupported after refresh or JS crash

Same problem here. It never transitions to PoweredOn in this case, only after hard restarting the app. Is there anything we can do?

julioxavierr

comment created time in 3 months

startedsimdjson/simdjson

started time in 3 months

startedmichael2m/lock

started time in 3 months

starteddandavison/delta

started time in 3 months

issue commentfacebook/react-native

Missing request token for request: <NSURLRequest: 0x60000253e5a0> { URL: file://

@ajanauskas Looks promising, but unfortunately it didn't change anything for me.

<details> <summary>My patch looks like this</summary>

diff --git a/node_modules/react-native/Libraries/Image/RCTLocalAssetImageLoader.mm b/node_modules/react-native/Libraries/Image/RCTLocalAssetImageLoader.mm
index 8669ad3..7a55058 100644
--- a/node_modules/react-native/Libraries/Image/RCTLocalAssetImageLoader.mm
+++ b/node_modules/react-native/Libraries/Image/RCTLocalAssetImageLoader.mm
@@ -49,19 +49,28 @@ - (RCTImageLoaderCancellationBlock)loadImageForURL:(NSURL *)imageURL
                                  partialLoadHandler:(RCTImageLoaderPartialLoadBlock)partialLoadHandler
                                   completionHandler:(RCTImageLoaderCompletionBlock)completionHandler
 {
-  UIImage *image = RCTImageFromLocalAssetURL(imageURL);
-  if (image) {
-    if (progressHandler) {
-      progressHandler(1, 1);
+  __block auto cancelled = std::make_shared<std::atomic<bool>>(false);
+  RCTExecuteOnMainQueue(^{
+    if (cancelled->load()) {
+      return;
     }
-    completionHandler(nil, image);
-  } else {
-    NSString *message = [NSString stringWithFormat:@"Could not find image %@", imageURL];
-    RCTLogWarn(@"%@", message);
-    completionHandler(RCTErrorWithMessage(message), nil);
-  }

-  return nil;
+    UIImage *image = RCTImageFromLocalAssetURL(imageURL);
+    if (image) {
+      if (progressHandler) {
+        progressHandler(1, 1);
+      }
+      completionHandler(nil, image);
+    } else {
+      NSString *message = [NSString stringWithFormat:@"Could not find image %@", imageURL];
+      RCTLogWarn(@"%@", message);
+      completionHandler(RCTErrorWithMessage(message), nil);
+    }
+  });
+
+  return ^{
+    cancelled->store(true);
+  };
 }

 @end

</details>

Is that all that needs to be done?

sagarlava

comment created time in 3 months

more