TailwindCSS / React Native: overflow scroll not working? - react-native

I want to be able to scroll down the list of tweets on my react native app using tailwind css and Expo. Any ideas?
const HomeScreen = () => {
return (
<>
<View className="flex-col overflow-y-scroll h-screen">
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
<Tweet />
</View>
</>
);
};
export default HomeScreen;

Related

Set a correlation variable for receive task with camunda bpmn 2.0

I am new to the camunda workflow modeller. I am trying to create a workflow with bpmn 2.0 as follows
In the receive task I also added the correlation message as follows
But the workflow is expecting to businessKey or CorrelationKey for receive tasks. Camunda documentation says its possible as per the link
https://docs.camunda.io/docs/1.1/guides/message-correlation/
But I don't any such options could be set in my camunda modeller as shown in my second diagram . Is there a problem with my camunda version I use I am not sure. Due to this I am not able to correlate my message in receive task.
Any help here is much appreciated.
Adding my camunda bpmn also.
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1ol3ys3" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.12.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
<bpmn:process id="Process_1gdubba" isExecutable="true">
<bpmn:sequenceFlow id="Flow_1gzqzne" sourceRef="StartEvent_1" targetRef="bookPackage" />
<bpmn:endEvent id="Event_1ymhad0">
<bpmn:incoming>Flow_1j5ss28</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_105dr0i" sourceRef="bookPackage" targetRef="WaitForBookingOrder" />
<bpmn:serviceTask id="bookPackage" name="Book Package" camunda:asyncBefore="true">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="content-type">application/json</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:inputParameter name="payload">${OrderDetails}</camunda:inputParameter>
<camunda:inputParameter name="method">POST</camunda:inputParameter>
<camunda:inputParameter name="url">http://localhost:8080/order/bookOrder</camunda:inputParameter>
</camunda:inputOutput>
<camunda:connectorId>http-connector</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1gzqzne</bpmn:incoming>
<bpmn:outgoing>Flow_105dr0i</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="StartEvent_1" name="Booking Details Entered" camunda:initiator="initiator-1">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="FormField_0vq0vhv" type="string" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1gzqzne</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1j5ss28" sourceRef="WaitForBookingOrder" targetRef="Event_1ymhad0" />
<bpmn:receiveTask id="WaitForBookingOrder" name="Wait for Order Booking" camunda:asyncBefore="true" messageRef="Message_0uzf0py">
<bpmn:incoming>Flow_105dr0i</bpmn:incoming>
<bpmn:outgoing>Flow_1j5ss28</bpmn:outgoing>
</bpmn:receiveTask>
</bpmn:process>
<bpmn:message id="Message_077dwge" />
<bpmn:message id="Message_1j9gxjh" />
<bpmn:message id="Message_0k2uuhr" />
<bpmn:message id="Message_1k0sfyp" name="Message_126eokf" />
<bpmn:signal id="Signal_04rb9k9" name="Signal_1kupnq8" />
<bpmn:message id="Message_0kmdk8v" name="Message_1m6is76" />
<bpmn:message id="Message_0bg1bci" name="Message_273179n" />
<bpmn:message id="Message_16e0u8x" name="Message_2dj35ou" />
<bpmn:message id="Message_12k4481" name="Message_3fq29kb" />
<bpmn:message id="Message_00ax63g" name="Message_0odalie" />
<bpmn:message id="Message_0waz31j" name="Message_005vg07" />
<bpmn:message id="Message_06yphqu" name="Message_35sf91n" />
<bpmn:message id="Message_0m445do" name="Message_2vut7h6" />
<bpmn:message id="Message_04gasop" name="Message_2n54vi8" />
<bpmn:message id="Message_088ugzc" name="Message_1b531ct" />
<bpmn:message id="Message_1rvnt8b" name="Message_3d4pilp" />
<bpmn:message id="Message_0xi2an8" name="Message_2bdedqe" />
<bpmn:message id="Message_1gvhqy2" name="Message_3aujnko" />
<bpmn:message id="Message_1q13r23" name="Message_09b9rf6" />
<bpmn:message id="Message_0uzf0py" name="WaitForBookingOrder">
<bpmn:extensionElements>
<camunda:properties>
<camunda:property name="correlationKey" value="orderId" />
</camunda:properties>
</bpmn:extensionElements><?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1ol3ys3" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.12.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
<bpmn:process id="Process_1gdubba" isExecutable="true">
<bpmn:extensionElements>
<camunda:properties>
<camunda:property name="correlationKey" value="orderId" />
</camunda:properties>
</bpmn:extensionElements>
<bpmn:sequenceFlow id="Flow_1gzqzne" sourceRef="StartEvent_1" targetRef="bookPackage" />
<bpmn:endEvent id="Event_1ymhad0">
<bpmn:incoming>Flow_1j5ss28</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_105dr0i" sourceRef="bookPackage" targetRef="WaitForBookingOrder" />
<bpmn:serviceTask id="bookPackage" name="Book Package" camunda:asyncBefore="true">
<bpmn:extensionElements>
<camunda:connector>
<camunda:inputOutput>
<camunda:inputParameter name="headers">
<camunda:map>
<camunda:entry key="content-type">application/json</camunda:entry>
</camunda:map>
</camunda:inputParameter>
<camunda:inputParameter name="payload">${OrderDetails}</camunda:inputParameter>
<camunda:inputParameter name="method">POST</camunda:inputParameter>
<camunda:inputParameter name="url">http://localhost:8080/order/bookOrder</camunda:inputParameter>
</camunda:inputOutput>
<camunda:connectorId>http-connector</camunda:connectorId>
</camunda:connector>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1gzqzne</bpmn:incoming>
<bpmn:outgoing>Flow_105dr0i</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:startEvent id="StartEvent_1" name="Booking Details Entered" camunda:initiator="initiator-1">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="FormField_0vq0vhv" type="string" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_1gzqzne</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1j5ss28" sourceRef="WaitForBookingOrder" targetRef="Event_1ymhad0" />
<bpmn:receiveTask id="WaitForBookingOrder" name="Wait for Order Booking" camunda:asyncBefore="true" messageRef="Message_0uzf0py">
<bpmn:incoming>Flow_105dr0i</bpmn:incoming>
<bpmn:outgoing>Flow_1j5ss28</bpmn:outgoing>
</bpmn:receiveTask>
</bpmn:process>
<bpmn:message id="Message_077dwge" />
<bpmn:message id="Message_1j9gxjh" />
<bpmn:message id="Message_0k2uuhr" />
<bpmn:message id="Message_1k0sfyp" name="Message_126eokf" />
<bpmn:signal id="Signal_04rb9k9" name="Signal_1kupnq8" />
<bpmn:message id="Message_0kmdk8v" name="Message_1m6is76" />
<bpmn:message id="Message_0bg1bci" name="Message_273179n" />
<bpmn:message id="Message_16e0u8x" name="Message_2dj35ou" />
<bpmn:message id="Message_12k4481" name="Message_3fq29kb" />
<bpmn:message id="Message_00ax63g" name="Message_0odalie" />
<bpmn:message id="Message_0waz31j" name="Message_005vg07" />
<bpmn:message id="Message_06yphqu" name="Message_35sf91n" />
<bpmn:message id="Message_0m445do" name="Message_2vut7h6" />
<bpmn:message id="Message_04gasop" name="Message_2n54vi8" />
<bpmn:message id="Message_088ugzc" name="Message_1b531ct" />
<bpmn:message id="Message_1rvnt8b" name="Message_3d4pilp" />
<bpmn:message id="Message_0xi2an8" name="Message_2bdedqe" />
<bpmn:message id="Message_1gvhqy2" name="Message_3aujnko" />
<bpmn:message id="Message_1q13r23" name="Message_09b9rf6" />
<bpmn:message id="Message_0uzf0py" name="WaitForBookingOrder">
<bpmn:extensionElements>
<camunda:properties>
<camunda:property name="correlationKey" value="orderId" />
</camunda:properties>
</bpmn:extensionElements>
</bpmn:message>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1gdubba">
<bpmndi:BPMNEdge id="Flow_1j5ss28_di" bpmnElement="Flow_1j5ss28">
<di:waypoint x="720" y="127" />
<di:waypoint x="792" y="127" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_105dr0i_di" bpmnElement="Flow_105dr0i">
<di:waypoint x="470" y="127" />
<di:waypoint x="620" y="127" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gzqzne_di" bpmnElement="Flow_1gzqzne">
<di:waypoint x="208" y="127" />
<di:waypoint x="370" y="127" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_1ymhad0_di" bpmnElement="Event_1ymhad0">
<dc:Bounds x="792" y="109" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1sgn7mg_di" bpmnElement="bookPackage">
<dc:Bounds x="370" y="87" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ktohbs_di" bpmnElement="StartEvent_1">
<dc:Bounds x="172" y="109" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="152" y="152" width="77" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0abkrtc_di" bpmnElement="WaitForBookingOrder">
<dc:Bounds x="620" y="87" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
</bpmn:message>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1gdubba">
<bpmndi:BPMNEdge id="Flow_1j5ss28_di" bpmnElement="Flow_1j5ss28">
<di:waypoint x="720" y="127" />
<di:waypoint x="792" y="127" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_105dr0i_di" bpmnElement="Flow_105dr0i">
<di:waypoint x="470" y="127" />
<di:waypoint x="620" y="127" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gzqzne_di" bpmnElement="Flow_1gzqzne">
<di:waypoint x="208" y="127" />
<di:waypoint x="370" y="127" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_1ymhad0_di" bpmnElement="Event_1ymhad0">
<dc:Bounds x="792" y="109" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1sgn7mg_di" bpmnElement="bookPackage">
<dc:Bounds x="370" y="87" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ktohbs_di" bpmnElement="StartEvent_1">
<dc:Bounds x="172" y="109" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="152" y="152" width="77" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0abkrtc_di" bpmnElement="WaitForBookingOrder">
<dc:Bounds x="620" y="87" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Not sure if you already have the answer or not, but the documentation that you refers is camunda 8.0, while yours is camunda 7.
I'm not sure about camunda 8, but in camunda 7, you can correlate with business key or variables.
https://docs.camunda.org/javadoc/camunda-bpm-platform/7.14/org/camunda/bpm/engine/runtime/MessageCorrelationBuilder.html

MotionLayout how rotate element?

Now I have a motion with two elements. When first is 50% duration then second starts. But I want to rotate second element in half transition to the end. I tryed to do this in KeyCycle but it Doesnt work. Maybe I need to do this in KeyAttribute? But it doesn't work too. Maybe someone give me a tip?
Scene:
<Transition
motion:autoTransition="animateToEnd"
motion:constraintSetEnd="#+id/end"
motion:constraintSetStart="#id/start"
motion:duration="1500">
<KeyFrameSet>
<KeyPosition
motion:framePosition="50"
motion:keyPositionType="pathRelative"
motion:motionTarget="#id/imageView"
motion:percentX="1" />
<KeyPosition
motion:framePosition="50"
motion:keyPositionType="pathRelative"
motion:motionTarget="#id/cardYes"
motion:percentX="0" />
<KeyCycle
android:translationY="50dp"
motion:framePosition="300"
motion:motionTarget="#+id/imageView"
motion:waveOffset="50dp"
motion:wavePeriod="2"
motion:waveShape="sin" />
</KeyFrameSet>
</Transition>
<ConstraintSet android:id="#+id/start">
<Constraint
android:id="#+id/imageView"
android:layout_width="0dp"
android:layout_height="10dp"
android:layout_marginTop="15dp"
motion:layout_constraintBottom_toBottomOf="parent"
motion:layout_constraintRight_toRightOf="parent"
motion:layout_constraintStart_toStartOf="parent"
motion:layout_constraintTop_toTopOf="parent" />
<Constraint
android:id="#+id/cardYes"
android:layout_width="100dp"
android:layout_height="100dp"
motion:layout_constraintRight_toLeftOf="parent"
motion:layout_constraintTop_toBottomOf="parent" />
</ConstraintSet>
<ConstraintSet android:id="#+id/end">
<Constraint
android:id="#+id/imageView"
android:layout_width="400dp"
android:layout_height="290dp"
android:layout_marginTop="15dp"
motion:layout_constraintRight_toRightOf="parent"
motion:layout_constraintStart_toStartOf="parent"
motion:layout_constraintTop_toTopOf="parent" />
<Constraint
android:id="#+id/cardYes"
android:layout_width="100dp"
android:layout_height="100dp"
motion:layout_constraintEnd_toEndOf="parent"
motion:layout_constraintTop_toBottomOf="#+id/imageView" />
</ConstraintSet>
must have 3 KeyCycle can work well.
In your case, maybe you need code like this:
<KeyFrameSet>
<KeyAttribute
android:rotation="0"
motion:framePosition="50"
motion:motionTarget="#id/view"
/>
<KeyAttribute
android:rotation="360"
motion:framePosition="100"
motion:motionTarget="#id/view"
/>
</KeyFrameSet>

Something went wrong page after after pressing on DeleteButton

Everytime I click on a delete button in a List component, the page shows this error page.
The deletion works though.
The error page
export const MaterialList = props => (
<List {...props}>
<Datagrid rowClick="edit">
<NumberField source="REGEL_ID" />
<DateField source="STAND" />
<NumberField source="MaterialID" />
<NumberField source="DruckstufenID" />
<TextField source="Bezeichnung" />
<TextField source="Bezeichnung2" />
<TextField source="pA_Artikel" />
<TextField source="Menge" />
<NumberField source="DefaultHaken" />
<NumberField source="Verdichten" />
<TextField source="pA_Artikel_Original" />
<EditButton />
<DeleteButton />
</Datagrid>
</List>
);
Is there someone who atleast understands the error message?
We noticed this bug a few days ago and it has been fixed in v3.3.3.

FontAwesome Icon not changing in Scene builder

I want to use fontawsome icons in my project. I'm using JavaFx (java8) and the fontawesomefx-8.9 library. Unfortunately the icons don't change when I change them in the "Glyph Name" section of SceneBuilder.
I have integrated the fontawesomefx-8.9.jar into my project. After that I was able to use FontAwsomeIconView in sceneBuilder.
But unfortunately the default icon does not change if I select another icon.
Main:
package main;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
#Override
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("freelancerdashboardgui.fxml"));
primaryStage.setTitle("Freelancer Dashboar");
primaryStage.setScene(new Scene(root, 600, 875));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
.fxml:
<?xml version="1.0" encoding="UTF-8"?>
<?import de.jensd.fx.glyphs.fontawesome.FontAwesomeIconView?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="756.0" prefWidth="1159.0" xmlns="http://javafx.com/javafx/8.0.172-ea" >
<padding>
<Insets left="50.0" />
</padding>
<VBox prefHeight="756.0" prefWidth="276.0" style="-fx-background-color: #202A2F;">
<children>
<Button alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="68.0" prefWidth="276.0" stylesheets="#css/styling.css" text="Überblick" textFill="WHITE">
<graphic>
<FontAwesomeIconView fill="WHITE" glyphName="GEAR" text="" />
</graphic>
<opaqueInsets>
<Insets />
</opaqueInsets>
<padding>
<Insets left="50.0" />
</padding>
</Button>
<Button alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="68.0" prefWidth="276.0" stylesheets="#css/styling.css" text="Kunde einpflegen" textFill="WHITE">
<graphic>
<FontAwesomeIconView fill="WHITE" text="" />
</graphic>
<opaqueInsets>
<Insets />
</opaqueInsets>
<padding>
<Insets left="50.0" />
</padding>
</Button>
<Button alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="68.0" prefWidth="276.0" stylesheets="#css/styling.css" text="Kunden" textFill="WHITE">
<graphic>
<FontAwesomeIconView fill="WHITE" text="" />
</graphic>
<opaqueInsets>
<Insets />
</opaqueInsets>
<padding>
<Insets left="50.0" />
</padding>
</Button>
<Button alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="68.0" prefWidth="276.0" stylesheets="#css/styling.css" text="Einstellungen" textFill="WHITE">
<graphic>
<FontAwesomeIconView fill="WHITE" glyphName="address-card" text="" />
</graphic>
<opaqueInsets>
<Insets />
</opaqueInsets>
<padding>
<Insets left="50.0" />
</padding>
</Button>
</children>
</VBox>
</AnchorPane>
Does anyone know this case or what I'm doing wrong?
Bro just empty the text field and it will work i've had the same problem.

Outlook Add-ins OWA ios not loading

I'm a little stump with what's wrong with my manifest that my add-in won't load on the web version of Outlook 365. It loads just fine on the native iOS outlook and on desktop web browsers in outlook.office365.com. I followed the samples provided on how to Add MobileFormFactor, but can't get the icon to appear when I read an email.
My manifest validator says i'm ok so far.
Manifest Validation
here is my manifest.
<MobileFormFactor>
<ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
<Group id="mobileMsgRead">
<Label resid="groupLabel" />
<Control xsi:type="MobileButton" id="TaskPaneBtn">
<Label resid="restpaneReadButtonLabel" />
<Icon xsi:type="bt:MobileIconList">
<bt:Image size="25" scale="1" resid="mobile-32" />
<bt:Image size="25" scale="2" resid="mobile-32" />
<bt:Image size="25" scale="3" resid="mobile-32" />
<bt:Image size="32" scale="1" resid="mobile-32" />
<bt:Image size="32" scale="2" resid="mobile-32" />
<bt:Image size="32" scale="3" resid="mobile-32" />
<bt:Image size="48" scale="1" resid="mobile-32" />
<bt:Image size="48" scale="2" resid="mobile-32" />
<bt:Image size="48" scale="3" resid="mobile-32" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="readTaskPaneUrl" />
</Action>
</Control>
</Group>
</ExtensionPoint>
</MobileFormFactor>
Try adding the following at the end of your <Form> element:
<TabletSettings>
<SourceLocation DefaultValue="https://dev2.practicepanther.com/outlook" />
<RequestedHeight>250</RequestedHeight>
</TabletSettings>
<PhoneSettings>
<SourceLocation DefaultValue="https://dev2.practicepanther.com/outlook" />
</PhoneSettings>
Does that help?