react-native-my-survey-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReadMe.md +1 -0
- package/index.js +16 -0
- package/package.json +13 -0
package/ReadMe.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# survey access from url in our app
|
package/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/SurveyWebView.js
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { WebView } from 'react-native-webview';
|
|
4
|
+
import { SafeAreaView } from 'react-native';
|
|
5
|
+
|
|
6
|
+
const SurveyWebView = ({ url }) => {
|
|
7
|
+
const SURVEY_URL = url || 'https://example.com/survey'; // Static URL fallback
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<SafeAreaView style={{ flex: 1 ,backgroundColor:'cyan'}}>
|
|
11
|
+
<WebView source={{ uri: SURVEY_URL }} />
|
|
12
|
+
</SafeAreaView>
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default SurveyWebView;
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-my-survey-sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "For xebo.ai",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "sheetal",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"peerDependencies": {"react": "18.3.1",
|
|
12
|
+
"react-native": "0.75.4"}
|
|
13
|
+
}
|