Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 788 Bytes

navigator-shared-element-group.md

File metadata and controls

43 lines (30 loc) · 788 Bytes

<Navigator.SharedElementGroup />

Props

id: number | string

Example Usage

import React from 'react';
import { Image } from 'react-native';
import { SharedElement } from 'native-navigation';

export default class UserImage extends React.Component {
  render() {
    const { user } = this.props;
    return (
      <SharedElement
        type="user-image"
        typeId={user.id}
        style={sizeStyle}
      >
        <Image
          style={[styles.image, sizeStyle]}
          source={{ uri: user.profile_image }}
        />
      </SharedElement>
    );
  }
}

Related Guides

Related pages