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;
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.
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
add a comment |
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.
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
add a comment |
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.
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
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.
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
react-native react-native-ios getstream-io
asked Mar 24 at 10:14
DrueTrueDrueTrue
7211
7211
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
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
add a comment |
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";
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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";
add a comment |
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";
add a comment |
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";
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";
answered Mar 25 at 11:19
DrueTrueDrueTrue
7211
7211
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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