mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2026-09-02 06:41:06 +00:00
chore: upgrade example to react-native@0.65.1
This commit is contained in:
@@ -11,7 +11,7 @@ import FastImage, { FastImageProps, Source } from 'react-native-fast-image'
|
||||
import Section from './Section'
|
||||
import FeatureText from './FeatureText'
|
||||
import FieldsBase64 from './images/fields'
|
||||
import {launchImageLibrary} from 'react-native-image-picker'
|
||||
import { launchImageLibrary } from 'react-native-image-picker'
|
||||
import BulletText from './BulletText'
|
||||
|
||||
// @ts-ignore
|
||||
@@ -51,7 +51,7 @@ class PhotoExample extends Component<{}, PhotoExampleState> {
|
||||
state: PhotoExampleState = {}
|
||||
|
||||
pick = () => {
|
||||
launchImageLibrary({mediaType: 'photo'}, (response) => {
|
||||
launchImageLibrary({ mediaType: 'photo' }, (response) => {
|
||||
if (response.didCancel) {
|
||||
console.log('ImagePicker - User cancelled.')
|
||||
} else if (response.errorCode) {
|
||||
|
||||
@@ -17,7 +17,7 @@ LogBox.ignoreLogs([
|
||||
export default function App() {
|
||||
return (
|
||||
<NavigationContainer>
|
||||
<Tab.Navigator>
|
||||
<Tab.Navigator screenOptions={{ headerShown: false }}>
|
||||
<Tab.Screen
|
||||
name="FastImage Example"
|
||||
component={FastImageExamples}
|
||||
|
||||
Reference in New Issue
Block a user