The code from GetStream.io documentation doesn't work in RN. string must be insertedHow to implement and test Firebase Analytics in a React-Native project?React Native Android: Showing an Activity from JavaIs it possible to integrate GetStream.io with a React Native app built with Create React Native App without ejecting?Show splash screen before show main screen in react native without using 3rd party libraryReact Native Firebase Realtime Database values are not displaying in firebasefirebase web or react-native-firebasefetch data in react native from mlabReact-native firebase 5.6.0 Objects are not valid react childfirebase.initializeApp (options requires a valid configuration objectHow to fix this error 'undefined is not an object'?

chmod would set file permission to 000 no matter what permission i try to set

Different PCB color ( is it different material? )

What's the most polite way to tell a manager "shut up and let me work"?

Why do Russians call their women expensive ("дорогая")?

Could IPv6 make NAT / port numbers redundant?

How can I grammatically understand "Wir über uns"?

Uncommanded roll at high speed

How was Apollo supposed to rendezvous in the case of a lunar abort?

Possible nonclassical ion from a bicyclic system

Biblical Basis for 400 years of silence between old and new testament

Why don't I have ground wiring on any of my outlets?

Why the lack of hesitance to wear pads on the sabbath?

Is the world in Game of Thrones spherical or flat?

Expenditure in Poland - Forex doesn't have Zloty

The qvolume of an integer

Can a rogue effectively triple their speed by combining Dash and Ready?

Humans meet a distant alien species. How do they standardize? - Units of Measure

Explanation of NonProxied vs Proxied Traffic

Is it possible to kill all life on Earth?

What is the intuition behind uniform continuity?

Select row of data if next row contains zero

Is this light switch installation safe and legal?

What does "tea juice" mean in this context?

Looking after a wayward brother in mother's will



The code from GetStream.io documentation doesn't work in RN. string must be inserted


How to implement and test Firebase Analytics in a React-Native project?React Native Android: Showing an Activity from JavaIs it possible to integrate GetStream.io with a React Native app built with Create React Native App without ejecting?Show splash screen before show main screen in react native without using 3rd party libraryReact Native Firebase Realtime Database values are not displaying in firebasefirebase web or react-native-firebasefetch data in react native from mlabReact-native firebase 5.6.0 Objects are not valid react childfirebase.initializeApp (options requires a valid configuration objectHow to fix this error 'undefined is not an object'?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I am using Firebase Server on Node together with RN. I wanted to use GetStream.io in my app. The backend works fine, but an example from GetStream.io documentation for frontend doesn't work, I just get this error.



enter image description here



I tried to insert attribute though it doesn't exist in GetStream.io example. I still receive this error.



This is how my code looks like:



 import React from 'react';
import SafeAreaView from 'react-native-safe-area-view';
import StreamApp from 'react-native-activity-feed';
import Text, View from "react-native";

const newsFeed = () =>
return (
<View>
<SafeAreaView style=flex: 1 forceInset= top: 'always' >
<StreamApp
apiKey="myapikey"
appId="myappid"
token="mytoken"
/>
</SafeAreaView>
</View>
);
;

export default newsFeed;


https://getstream.io/react-native-activity-feed/tutorial/ link to official guide from GetStream.io










share|improve this question




























    1















    I am using Firebase Server on Node together with RN. I wanted to use GetStream.io in my app. The backend works fine, but an example from GetStream.io documentation for frontend doesn't work, I just get this error.



    enter image description here



    I tried to insert attribute though it doesn't exist in GetStream.io example. I still receive this error.



    This is how my code looks like:



     import React from 'react';
    import SafeAreaView from 'react-native-safe-area-view';
    import StreamApp from 'react-native-activity-feed';
    import Text, View from "react-native";

    const newsFeed = () =>
    return (
    <View>
    <SafeAreaView style=flex: 1 forceInset= top: 'always' >
    <StreamApp
    apiKey="myapikey"
    appId="myappid"
    token="mytoken"
    />
    </SafeAreaView>
    </View>
    );
    ;

    export default newsFeed;


    https://getstream.io/react-native-activity-feed/tutorial/ link to official guide from GetStream.io










    share|improve this question
























      1












      1








      1








      I am using Firebase Server on Node together with RN. I wanted to use GetStream.io in my app. The backend works fine, but an example from GetStream.io documentation for frontend doesn't work, I just get this error.



      enter image description here



      I tried to insert attribute though it doesn't exist in GetStream.io example. I still receive this error.



      This is how my code looks like:



       import React from 'react';
      import SafeAreaView from 'react-native-safe-area-view';
      import StreamApp from 'react-native-activity-feed';
      import Text, View from "react-native";

      const newsFeed = () =>
      return (
      <View>
      <SafeAreaView style=flex: 1 forceInset= top: 'always' >
      <StreamApp
      apiKey="myapikey"
      appId="myappid"
      token="mytoken"
      />
      </SafeAreaView>
      </View>
      );
      ;

      export default newsFeed;


      https://getstream.io/react-native-activity-feed/tutorial/ link to official guide from GetStream.io










      share|improve this question














      I am using Firebase Server on Node together with RN. I wanted to use GetStream.io in my app. The backend works fine, but an example from GetStream.io documentation for frontend doesn't work, I just get this error.



      enter image description here



      I tried to insert attribute though it doesn't exist in GetStream.io example. I still receive this error.



      This is how my code looks like:



       import React from 'react';
      import SafeAreaView from 'react-native-safe-area-view';
      import StreamApp from 'react-native-activity-feed';
      import Text, View from "react-native";

      const newsFeed = () =>
      return (
      <View>
      <SafeAreaView style=flex: 1 forceInset= top: 'always' >
      <StreamApp
      apiKey="myapikey"
      appId="myappid"
      token="mytoken"
      />
      </SafeAreaView>
      </View>
      );
      ;

      export default newsFeed;


      https://getstream.io/react-native-activity-feed/tutorial/ link to official guide from GetStream.io







      react-native react-native-ios getstream-io






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 24 at 10:14









      DrueTrueDrueTrue

      7211




      7211






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Based on the error message, it seems like your newsFeed component is rendered inside a Text element.



          Here's the link to the check in RN that raise this error -> https://github.com/facebook/react-native/blob/master/Libraries/Components/View/View.js#L44



          Eg. this JSX code would trigger the same error:



          <Text>
          < newsFeed />
          </Text>


          Assuming this is the case (or a variation of it) you can fix this problem very easily by wrapping your component in a <View> and remove <Text> when not necessary.






          share|improve this answer























          • But I don't have <Text> in my component

            – DrueTrue
            Mar 25 at 11:12











          • Fixed it! Thank you :)

            – DrueTrue
            Mar 25 at 11:19


















          0














          So what I found out.



          The problem was because of this line:



           import SafeAreaView from 'react-native-safe-area-view';


          What you should do is following:



           import SafeAreaView from "react-native";





          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55322713%2fthe-code-from-getstream-io-documentation-doesnt-work-in-rn-text-string-must%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Based on the error message, it seems like your newsFeed component is rendered inside a Text element.



            Here's the link to the check in RN that raise this error -> https://github.com/facebook/react-native/blob/master/Libraries/Components/View/View.js#L44



            Eg. this JSX code would trigger the same error:



            <Text>
            < newsFeed />
            </Text>


            Assuming this is the case (or a variation of it) you can fix this problem very easily by wrapping your component in a <View> and remove <Text> when not necessary.






            share|improve this answer























            • But I don't have <Text> in my component

              – DrueTrue
              Mar 25 at 11:12











            • Fixed it! Thank you :)

              – DrueTrue
              Mar 25 at 11:19















            0














            Based on the error message, it seems like your newsFeed component is rendered inside a Text element.



            Here's the link to the check in RN that raise this error -> https://github.com/facebook/react-native/blob/master/Libraries/Components/View/View.js#L44



            Eg. this JSX code would trigger the same error:



            <Text>
            < newsFeed />
            </Text>


            Assuming this is the case (or a variation of it) you can fix this problem very easily by wrapping your component in a <View> and remove <Text> when not necessary.






            share|improve this answer























            • But I don't have <Text> in my component

              – DrueTrue
              Mar 25 at 11:12











            • Fixed it! Thank you :)

              – DrueTrue
              Mar 25 at 11:19













            0












            0








            0







            Based on the error message, it seems like your newsFeed component is rendered inside a Text element.



            Here's the link to the check in RN that raise this error -> https://github.com/facebook/react-native/blob/master/Libraries/Components/View/View.js#L44



            Eg. this JSX code would trigger the same error:



            <Text>
            < newsFeed />
            </Text>


            Assuming this is the case (or a variation of it) you can fix this problem very easily by wrapping your component in a <View> and remove <Text> when not necessary.






            share|improve this answer













            Based on the error message, it seems like your newsFeed component is rendered inside a Text element.



            Here's the link to the check in RN that raise this error -> https://github.com/facebook/react-native/blob/master/Libraries/Components/View/View.js#L44



            Eg. this JSX code would trigger the same error:



            <Text>
            < newsFeed />
            </Text>


            Assuming this is the case (or a variation of it) you can fix this problem very easily by wrapping your component in a <View> and remove <Text> when not necessary.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 25 at 8:31









            Tommaso BarbugliTommaso Barbugli

            8,99223338




            8,99223338












            • But I don't have <Text> in my component

              – DrueTrue
              Mar 25 at 11:12











            • Fixed it! Thank you :)

              – DrueTrue
              Mar 25 at 11:19

















            • But I don't have <Text> in my component

              – DrueTrue
              Mar 25 at 11:12











            • Fixed it! Thank you :)

              – DrueTrue
              Mar 25 at 11:19
















            But I don't have <Text> in my component

            – DrueTrue
            Mar 25 at 11:12





            But I don't have <Text> in my component

            – DrueTrue
            Mar 25 at 11:12













            Fixed it! Thank you :)

            – DrueTrue
            Mar 25 at 11:19





            Fixed it! Thank you :)

            – DrueTrue
            Mar 25 at 11:19













            0














            So what I found out.



            The problem was because of this line:



             import SafeAreaView from 'react-native-safe-area-view';


            What you should do is following:



             import SafeAreaView from "react-native";





            share|improve this answer



























              0














              So what I found out.



              The problem was because of this line:



               import SafeAreaView from 'react-native-safe-area-view';


              What you should do is following:



               import SafeAreaView from "react-native";





              share|improve this answer

























                0












                0








                0







                So what I found out.



                The problem was because of this line:



                 import SafeAreaView from 'react-native-safe-area-view';


                What you should do is following:



                 import SafeAreaView from "react-native";





                share|improve this answer













                So what I found out.



                The problem was because of this line:



                 import SafeAreaView from 'react-native-safe-area-view';


                What you should do is following:



                 import SafeAreaView from "react-native";






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 25 at 11:19









                DrueTrueDrueTrue

                7211




                7211



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55322713%2fthe-code-from-getstream-io-documentation-doesnt-work-in-rn-text-string-must%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현