File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
13
13
import { LoremIpsum } from '../common' ;
14
14
15
15
interface PressBoxProps {
16
- setDuration : ( duration : number ) => void ;
16
+ setDuration ? : ( duration : number ) => void ;
17
17
}
18
18
19
19
interface ExampleState {
@@ -24,7 +24,7 @@ export class PressBox extends Component<PressBoxProps> {
24
24
private onHandlerStateChange = (
25
25
event : LongPressGestureHandlerStateChangeEvent
26
26
) => {
27
- this . props . setDuration ( event . nativeEvent . duration ) ;
27
+ this . props . setDuration ?. ( event . nativeEvent . duration ) ;
28
28
} ;
29
29
private onSingleTap = ( event : TapGestureHandlerStateChangeEvent ) => {
30
30
if ( event . nativeEvent . state === State . ACTIVE ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../../tsconfig.json" ,
3
3
"compilerOptions" : {
4
+ "noEmit" : true ,
4
5
"baseUrl" : " ." ,
5
6
"paths" : {
6
7
"react-native-gesture-handler" : [" ../../src/index.ts" ],
Original file line number Diff line number Diff line change 13
13
"target" : " esnext" ,
14
14
"declaration" : true ,
15
15
"declarationMap" : false ,
16
+ "outDir" : " lib/typescript" ,
16
17
17
18
"noStrictGenericChecks" : false ,
18
19
"forceConsistentCasingInFileNames" : true ,
You can’t perform that action at this time.
0 commit comments