-
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.0' into chore/deps-update
- Loading branch information
Showing
30 changed files
with
344 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 11 additions & 5 deletions
16
packages/app-harness/src/components/NewModuleButton/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
import React from 'react'; | ||
import { Button } from 'react-native'; | ||
import React, { forwardRef } from 'react'; | ||
import { TouchableOpacityProps, TouchableOpacity, Text } from 'react-native'; | ||
import { useLoggerContext } from '../../context'; | ||
import styles from '../../styles'; | ||
|
||
export const NewModuleButton = () => { | ||
interface ButtonProps extends TouchableOpacityProps {} | ||
export const NewModuleButton = forwardRef<TouchableOpacity, ButtonProps>(({ onBlur, onFocus, style }, ref) => { | ||
const { logDebug } = useLoggerContext(); | ||
const onPress = () => { | ||
logDebug('NativeModules not supported in web'); | ||
}; | ||
return <Button title="Click to invoke native module!" color="#841584" onPress={onPress} />; | ||
}; | ||
return ( | ||
<TouchableOpacity ref={ref} onPress={onPress} onFocus={onFocus} onBlur={onBlur} style={style}> | ||
<Text style={styles.buttonTitle}>Click to invoke native module!</Text> | ||
</TouchableOpacity> | ||
); | ||
}); |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
import React from 'react'; | ||
import React, { forwardRef } from 'react'; | ||
import { useLoggerContext } from '../../context'; | ||
import { Button } from 'react-native'; | ||
import { Text, TouchableOpacity, TouchableOpacityProps } from 'react-native'; | ||
import styles from '../../styles'; | ||
|
||
export const PhotoEditorButton = () => { | ||
interface ButtonProps extends TouchableOpacityProps {} | ||
export const PhotoEditorButton = forwardRef<TouchableOpacity, ButtonProps>(({ onBlur, onFocus, style }, ref) => { | ||
const { logDebug } = useLoggerContext(); | ||
|
||
const handlePhotoEditor = () => { | ||
logDebug('PhotoEditor not supported on this platform'); | ||
}; | ||
|
||
return <Button onPress={handlePhotoEditor} title="Show PhotoEditor" />; | ||
}; | ||
return ( | ||
<TouchableOpacity ref={ref} onPress={handlePhotoEditor} onFocus={onFocus} onBlur={onBlur} style={style}> | ||
<Text style={styles.buttonTitle}>Show PhotoEditor</Text> | ||
</TouchableOpacity> | ||
); | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.