const styles = StyleSheet.create({
inputContainerStyle: {
margin: 8,
marginTop: 75,
position: 'relative'
},
icon: {
position: 'absolute',
top: 5,
right: 0,
zIndex: 1
}
});
// пакетная
[{
"to": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
"sound": "default",
"body": "Hello world!"
}, {
"to": "ExponentPushToken[yyyyyyyyyyyyyyyyyyyyyy]",
"badge": 1,
"body": "You've got mail"
}]
// обычная
{
"to": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
"title":"hello",
"body": "world"
}
StackNavigation
в BottomTabNavigation
и там уже прописать переходы.const AppNavigator = createBottomTabNavigator({
RootScreenA: {
screen: createStackNavigator({
ChildScreenA: {
screen: ChildScreenA,
},
ChildScreenB: {
screen: ChildScreenA,
},
}),
},
RootScreenB: {
screen: createStackNavigator({
ChildScreenA: {
screen: ChildScreenA,
},
ChildScreenC: {
screen: ChildScreenC,
},
}),
},
RootScreenC: {
screen: createStackNavigator({
ChildScreenD: {
screen: ChildScreenD,
},
ChildScreenE: {
screen: ChildScreenE,
},
}),
},
});
const App = createAppContainer(AppNavigator);
<?php
CJSCore::Init(['phone_number']);
?>
<span id="flag"></span>
<input type="text" id="number" placeholder="Укажите ваш телефон" />
<script>
BX.ready(function() {
new BX.PhoneNumber.Input({
node: BX('number'),
forceLeadingPlus: false, // принудительно установить +
flagNode: BX('flag'), //
flagSize: 16, // Размер флага [16, 24, 32]
defaultCountry: 'ru', // Страна по-умолчанию
onChange: function(e) {
// вызывается при изменении значения
}
});
});
</script>
$iblockId = 25;
$sectionId = 37;
\Bitrix\Main\Loader::includeModule('iblock');
// вариант 1
$field = $USER_FIELD_MANAGER->GetUserFields('IBLOCK_25_SECTION', $sectionId);
$value = $field['UF_NEWH1']['VALUE'];
print_r($value);
// вариант 2
$res = CIBlockSection::GetList([], ['IBLOCK_ID' => $iblockId, 'ID' => $sectionId], false, ['IBLOCK_ID', 'ID', 'UF_NEWH1'])->Fetch();
$value = $res['UF_NEWH1'];
print_r($value);
<input type="button" onclick="ym(56810131, 'reachGoal', 'zakaz_zvonka'); return true;" value="Заказать" />
LoginController
(Документация)public function username()
{
return 'phone';
}
protected function validateLogin(Request $request)
{
$this->validate(
$request,
[
'phone' => 'required|string',
'password' => 'required|string',
]
);
}