already_bookmarkSinglePost.js constructor(props) {
        super(props);
        this.state = {
          isloading: true,
          post: [],
          already_bookmark: false,
        };
      }<List.Item
                 title={`Published on ${moment(
                   post[0].date,
                   'YYYYMMDD',
                 ).fromNow()}`}
                 right={props => {
                   if (this.state.already_bookmark == true) {
                     return (
                       <TouchableOpacity
                         onPress={() => this.removeBookMark(post[0].id)}>
                         <FontAwesome name="bookmark" size={30} />
                       </TouchableOpacity>
                     );
                   } else {
                     return (
                       <TouchableOpacity
                         onPress={() => this.saveBookMark(post[0].id)}>
                         <FontAwesome name="bookmark-o" size={30} />
                       </TouchableOpacity>
                     );
                   }
                 }}
               />already_bookmarkTouchableOpacityFontAwesomeremoveBookMark saveBookMark@react-native-community/async-storage package. For that, we need to use install the package first. In order to install the package we need to run the command from the following code snippet:
  yarn add @react-native-community/async-storagepackage documentation.
 import AsyncStorage from '@react-native-community/async-storage';Save Bookmark
  saveBookMark = async post_id => {
        this.setState({already_bookmark: true});
      };already_bookmarkAsyncStorage  saveBookMark = async post_id => {
             this.setState({already_bookmark: true});
             let bookmark = [];
             bookmark.push(post_id);
             AsyncStorage.setItem('bookmark', JSON.stringify(bookmark));
     };AsyncStorage   saveBookMark = async post_id => {
        this.setState({already_bookmark: true});
        await AsyncStorage.getItem('bookmark').then(token => {
          const res = JSON.parse(token);
          if (res !== null) {
            let data = res.find(value => value === post_id);
            if (data == null) {
              res.push(post_id);
              AsyncStorage.setItem('bookmark', JSON.stringify(res));
            }
          } else {
            let bookmark = [];
            bookmark.push(post_id);
             AsyncStorage.setItem('bookmark', JSON.stringify(bookmark));
          }
        });
      };Summary
AsyncStorage